degrande107 Posted April 9, 2006 Posted April 9, 2006 Hi, I was wondering if it is possible to make a form in vb.net have round corners at runtime? I found a few examples on how to do it in vb6 with gdi32, but i can't get it to work in .net. Any help would be appreciated. Thanks in advance. Quote
Cags Posted April 9, 2006 Posted April 9, 2006 Yes it is possible, you could do it with GDI, but it would probably be easier to achieve by changing the region property of the form. You can see how to do that in the following post (which involved a panel, but the theory is the same). http://www.xtremedotnettalk.com/showthread.php?t=95162&highlight=rounded Quote Anybody looking for a graduate programmer (Midlands, England)?
degrande107 Posted April 9, 2006 Author Posted April 9, 2006 Thanks. This should work, if i could make a round rectangle region. Could anyone post an example of how to do this please. Quote
Cags Posted April 9, 2006 Posted April 9, 2006 The other topic that I linked to has a code sample attached to one of the posts near the end. It's a custom panel, but as I said before that's pretty irrelevant, the code included will show you how to create a rounded rectangle region. Quote Anybody looking for a graduate programmer (Midlands, England)?
degrande107 Posted April 9, 2006 Author Posted April 9, 2006 Awesome. It works :) Thanks for the help. I really appreciate it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.