So you are referring to irregular shaped form. Then you can create a shape in any graphics program and make it as a background of your form. Then set the transparency key to set the areas that would be transparent...
Just see the docs on further explanation regarding the TransparencyKey Property...
u could also use GDI+ to draw a region , then set your program region to this region
ex: (this example from Graphics programming with GDI+ book after modification)
Rectangle rect = new Rectangle(0,0,100,100); // Create a graphics path GraphicsPath path = new GraphicsPath(); // Add an ellipse to the graphics path path.AddEllipse(rect); // Set the Region property of the your form // by creating a region from the path this.Region = new Region(path);
u can add areas u want in your application to the path and the region of your program will be the total of these regions so u can make some circular shaped or any thing u want even text shape for your form
In what respect as in change the edge of the window box In VS2005 form designed in the properties box (whilst form is selected not a component) you can change the FormBorderStyle option. Not sure about custom borders
Form
Clarke Scott.
Anonymous .
Hi,
So you are referring to irregular shaped form. Then you can create a shape in any graphics program and make it as a background of your form. Then set the transparency key to set the areas that would be transparent...
Just see the docs on further explanation regarding the TransparencyKey Property...
cheers,
Paul June A. Domag
heri_09
u could also use GDI+ to draw a region , then set your program region to this region
ex: (this example from Graphics programming with GDI+ book after modification)
Rectangle rect = new Rectangle(0,0,100,100);
// Create a graphics path
GraphicsPath path = new GraphicsPath();
// Add an ellipse to the graphics path
path.AddEllipse(rect);
// Set the Region property of the your form
// by creating a region from the path
this.Region = new Region(path);
u can add areas u want in your application to the path and the region of your program will be the total of these regions so u can make some circular shaped or any thing u want even text shape for your form
thanks
RaaH