Where is the "region" control?

  • Thread starter Thread starter Denis L. Menezes
  • Start date Start date
D

Denis L. Menezes

Hello friends.

In VB6 I used the shape control to make a coloured circle on the form. In
vb.net, I cannot find it.
I understand that there is a control called "region" which does the same
things as a "shape" control. But I cannot find it
in the toolbox.

Can someone tell me where to find this "region" control?

Thanks
Denis
 
Hello friends.

In VB6 I used the shape control to make a coloured circle on the form. In
vb.net, I cannot find it.
I understand that there is a control called "region" which does the same
things as a "shape" control. But I cannot find it
in the toolbox.

Can someone tell me where to find this "region" control?

any window can have a region associated with it.
try something like:

dim mywin as new MyControl()
dim gfxpath as new GraphicsPath()
gfxpath.AddEllipse(mywin.ClientRectangle)
mywin.Region = New Region(gfxpath)


--Kresimir
http://www.inet.hr/~kkrecak
 
Back
Top