R Ryan Wade Oct 10, 2003 #1 How would I create a panel with a round corner? A sample would be great. Thanks Ryan
B Bob Powell [MVP] Oct 10, 2003 #2 Check out the GDI+ FAQ. It shows how to create a round rect. Draw a roundrect into a GraphicsPath. Use the path to create a region and then set the panel control's Region property with that. -- Bob Powell [MVP] C#, System.Drawing September's edition of Well Formed is now available. http://www.bobpowell.net/currentissue.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/gdiplus_faq.htm Blog http://bobpowelldotnet.blogspot.com
Check out the GDI+ FAQ. It shows how to create a round rect. Draw a roundrect into a GraphicsPath. Use the path to create a region and then set the panel control's Region property with that. -- Bob Powell [MVP] C#, System.Drawing September's edition of Well Formed is now available. http://www.bobpowell.net/currentissue.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/gdiplus_faq.htm Blog http://bobpowelldotnet.blogspot.com