[Help]How to make weird shaped form?[Solved]
Hello mpgh,
can anyone tell me how to make weird shaped form? (with holes and curved lines)
If you don't understand me , look at the picture.
picture:
ImageShack® - Online Photo and Video Hosting
sorry for my bad english!
Easiest way is creating a custom shape or image in Photoshop, setting the background of the image to an obscure unused color (like pink), then adding it as the background of the form and setting the transparency key (of the form) to the same color.
You can also use system.drawing
[highlight=vbnet]
Dim Formshape As New GraphicsPath
Formshape.AddEllipse(20, 20, 30, 20)
'Formshape.AddEclipse(400,400,400,400)
'This for a larger circle, you get the idea.
'FormShape.AddEclipse(X,Y,Width,Hight)
'Eclipse = Circle
Me.Region = New Region(Formshape)
[/highlight]
This will set the forms shape to a very small oval.