PDA

Click to See Complete Forum and Search --> : Rounded TextBox


kumar_1981
Dec 7th, 2006, 04:58 PM
Hai

i am working with winforms using C# 2005. i need to have Rounded Corner textbox control without any thirdparty dlls.


Thanks and Regards
Vinay Kumar

jmcilhinney
Dec 7th, 2006, 05:37 PM
Then you're going to have to inherit the Button class and handle the drawing yourself. You're going to have to do some research on authoring and drawing your own controls. This is a far from simple topic because to do it properly you will have to implement visual styles. My guess is that this is one of the many cases of a beginner being more concerned with their application looking fancy than actually learning the basics of programming. I think that your time could be much better spent, but what you do is obviously up to you.

Harsh Gupta
Dec 8th, 2006, 09:10 AM
or you can use CreateRoundRectRgn API (http://www.allapi.net/apilist/CreateRoundRectRgn.shtml) for the same.