HighTechTalks DotNet Forums  

How to make rectangular shape with rounded corners

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss How to make rectangular shape with rounded corners in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default How to make rectangular shape with rounded corners - 01-21-2004 , 10:00 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
Post a follow

Reply With Quote
  #2  
Old   
Travis Merkel
 
Posts: n/a

Default RE: How to make rectangular shape with rounded corners - 01-28-2004 , 03:11 PM






You have to handle the drawing of the control yourself : http://msdn.microsoft.com/library/de...rmscontrol.asp
Then you have to define a path to use as the outline for the control : http://msdn.microsoft.com/library/de...wpathtopic.asp

Travis Merkel
v-trmerk (AT) microsoft (DOT) com

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.