Groups | Blog | Home
all groups > dotnet academic > january 2004 >

dotnet academic : How to make rectangular shape with rounded corners


opamail1-1000 NO[at]SPAM yahoo.com
1/21/2004 7:00:21 AM
Hi folks,

I'm trying to change to shape of any rectangular control (i.e.
picturebox), such that opposite corners are rounded and the other two
corners are not.
I'll settle for all corners rounded if the code is complex.

I know that I have to set the regions of the control to a newly
defined region,
but that's all I know.

Thanks
Travis Merkel
1/28/2004 12:11:11 PM
You have to handle the drawing of the control yourself : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconrenderingwindowsformscontrol.asp
Then you have to define a path to use as the outline for the control : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawinggraphicsclassdrawpathtopic.asp

Travis Merkel
AddThis Social Bookmark Button