Create a user control with other shape than rectangluar?

  • Thread starter Thread starter Mats-Lennart Hansson
  • Start date Start date
M

Mats-Lennart Hansson

Hi,
Is it possible to create a user control (for a windows application) that is
not rectangular but, for example, is like a circle?

When I put two controls close each other in a form, you can always see the
edge of the overlying control...

Thanks,

Mats-Lennart
 
Hi Mats-Lennart,
You can create control with whatever form you please. Look at Control.Region
property.
 
You may want to look at VG.net, which has a Visual Studio .NET designer very
similar to a user control designer, but uses pure vector graphics.

Regards,
Frank Hileman

check out VG.net: www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor
 
Thanks. But this property can't be set during design time so when do I set
it? In the constructor?

Thanks,

Mats-Lennart

Stoitcho Goutsev (100) said:
Hi Mats-Lennart,
You can create control with whatever form you please. Look at Control.Region
property.

--

Stoitcho Goutsev (100) [C# MVP]


Mats-Lennart Hansson said:
Hi,
Is it possible to create a user control (for a windows application) that
is
not rectangular but, for example, is like a circle?

When I put two controls close each other in a form, you can always see the
edge of the overlying control...

Thanks,

Mats-Lennart
 
Hi,
I believe in the constructor would be ok.

--

Stoitcho Goutsev (100) [C# MVP]


Mats-Lennart Hansson said:
Thanks. But this property can't be set during design time so when do I set
it? In the constructor?

Thanks,

Mats-Lennart

Stoitcho Goutsev (100) said:
Hi Mats-Lennart,
You can create control with whatever form you please. Look at Control.Region
property.

--

Stoitcho Goutsev (100) [C# MVP]


Mats-Lennart Hansson said:
Hi,
Is it possible to create a user control (for a windows application)
that
is
not rectangular but, for example, is like a circle?

When I put two controls close each other in a form, you can always see the
edge of the overlying control...

Thanks,

Mats-Lennart
 
Back
Top