Where is the "region" control?

  • Thread starter Denis L. Menezes
  • 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
 
K

Kresimir

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
 
H

Herfried K. Wagner

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top