Make Panels corners rounded

diverdan

Active member
Joined
Jan 2, 2006
Messages
34
Location
London UK
Programming Experience
Beginner
Hi there

I am very new to vb.net and have just installed the express version.
I have created a form and I want to round the corners on a panel for a better visual look.

How do I do this? or should I be using another control?
 
To tell you the best way to accomplish something in VB.NET would require more knowledge of your application. You mention a panel so I assume you need a container control. If that's correct then yes using a panel is one way to go. To get the rounded corners (in a panel or any other control) you'll have to do custom painting (perhaps by creating a user control that inherits the panel class). There are most definately code examples all over the net (try codeproject.com). Searching or reading through the 'Graphics/GDI+' category in this forum should get you started.
 
Back
Top