Click here to Skip to main content
15,894,291 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

How to set round edges/corners to components like TextBox, Button, etc ? I am working with win forms and C#. Textbox doesn't have a onPaint/paint to override.

I would be glad if you can help me.
Posted

 
Share this answer
 
Comments
All Time Programming 13-Jul-11 8:31am    
Thanks Prerak, I had already loooked at that link. From that I just need the TekenRondeRechthoek() that does the painting rounded border. The issue is how, from where do I call that method. And for just 2 textboxes, this huge custom control, I don't think it worthful.
Is their any other solution, maybe simpler or a method via which I can call the above method.
Any help is highly appreciated.
Dave Kreskowiak 13-Jul-11 13:22pm    
There is no simpler method. The TextBox is going to have to be wrapped in something like the control you were pointed at in order to do what you want.
Hope this[^] might help you.
 
Share this answer
 
Comments
All Time Programming 13-Jul-11 8:31am    
Thanks Ramalinga, but its a win forms app so no CSS or GDI+, etc.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900