1
votes

Is it possible to make a transparent and oval border in windows forms? Inner part of the form should not be transparent.

We have a image with a transparent and oval border, we set it as the BackgroundImage of the form. If we use TransparencyKey, borders getting oval but the Form can't clear the TranparencyKey color from the background of the border which causes to lose trancparency. You see the BackColor of the Form on borders.

Thanks

1

1 Answers

0
votes

You can use Region property to make your form any shape you need.

In addition, WPF allows to do it even simpler. Look here. WPF also provides very simple and useful gradients speicifying way. Here few good links:

http://msdn.microsoft.com/en-us/library/aa970904.aspx

http://msdn.microsoft.com/en-us/library/ms754083.aspx

http://community.visual-basic.it/alessandroenglish/archive/2009/04/14/25316.aspx

You also can use background image with TransparentKey setting as shown in this example (and looks like you currently have this solution)