c# - Remove left and right side borders -


I want my textbox to see if it  Enter image details here

How can I remove the left and right sides of my Textbox control? ?

Normally, you want to override the OnPaint event to do this, however for the textbox , It will not work because OnPaint is called wont.

As a description one box box will be a way

Although I do not suggest you do all this, it looks like a daunting task <(PTI) < / P>

Maybe it would be enough to just draw a line above or below the text box?

- Edit -

Perhaps this will explain it better:

The text box is special that you do not recruit it Can do If you just want a custom border, you can create a new UserControl and add a reader with the borderline style. Ensure that you leave enough room outside the text box for the border and then paint the border on the UserControl surface. An alternative way would be to handle the WM_NCPAINT message of the text box and then paint the border, but it is much more complex.

Source: msdn shawn.ohern in forums: (Sorry I did not

-itit2 - This will make your own text box One way to create, which again, I do not recommend the person who is new C # and programming;)

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -