Round Text Boxes using C#

Hi,

I'm devoloping a windows application which consists of Rounded Textboxes(The textBox edges be in the ovalshape) and the form backcolour is white.Can any one please post me the code for this solution .

Thaks in Advance

Regards

Indusekhar.Velagapudi

Software Engineer.



Answer this question

Round Text Boxes using C#

  • Hazze

    I'm not aware that the textbox ITSELF _can_ be oval shaped ...

    you can place the textbox over an oval created in the following fashion:

    http://www.codeproject.com/useritems/rounded_corners.asp

    but I've never seen an input field itself with rounded corners.


  • ekkapop

    Hi,

    Thanks for ur reply.The edges seems to be eaten away becoz the form bakground color is white.The edges are not clear for this.

    In the Code Project he has drawn 2 arcs and 2 lines which constitues of a textbox.Except on the white background the round textbox look is gud.It would be greatful if u could suggest an alternate solution.

    Thanks & Regards,

    Indusekhar.velagapudi.

    Software Engineer.


  • nil130180

    when you say the edges are not clear, do you mean they're kind of jagged to avoid a jagged appearance, you'd need to implement some sort of anti-aliasing, which unfortunately is not provided by default in NETCF (I don't believe).
  • Jane2006

    Hi AB,

    Thanks for ur reply.Prevoiusly i have used the code specified in the code project Itself,the code is working fine with all the backgrounds except the white background(The Edges are not clear on the white back ground)Do u have any other suggestion for this It would be greatful if u can post any alternative suggestion for this.

    Thanks & Regards

    Indusekhar.Velagapudi


  • Round Text Boxes using C#