PlasmaNeo
07-11-2004, 04:40 AM
I have been looking all other the net, searching the forum. I can't find any API for rouding corners for forms in VB.NET.
Please help me find a example code, since I am kind of newbie!
Thanks in advance.
Iceplug
07-11-2004, 06:55 AM
Use the TransparencyKey of the form to make certain colors transparent.
Then, you can set your form to have no border, and then just slap some pictureboxes at the corners of the form with a picture that has your transparencykeycolor. You can easily draw the pictures with your transparency in Paint, and you can specify exactly what the edges look like. :)
PlasmaNeo
07-12-2004, 03:56 AM
Use the TransparencyKey of the form to make certain colors transparent.
Then, you can set your form to have no border, and then just slap some pictureboxes at the corners of the form with a picture that has your transparencykeycolor. You can easily draw the pictures with your transparency in Paint, and you can specify exactly what the edges look like. :)
I think I manage to make what you said to do. But I have this problem.
show1.gif - The picture (background picture) in Adobe Photoshop
show2.gif - Picture loaded into form, with backgroundcolor=Color.Red
Sourcecode(form_load):
Me.TransparencyKey = Color.Red
show3.gif - Running the project
Please help :)
EDIT: If I use TransparencyKey=Color.Black, the corners gets rounded, but I can't have TransparencyKey=Black because of all texts is black.