How to change textbox border color and width in winforms?
问题 I would like to know how do I change the border color and border width of textbox as something shown below If it is mouse hover I need to display one colour and on mouse down I need to display another colour. Can anyone explain me the detailed process with the source if available. 回答1: You could do the following: Place the TextBox inside a Panel Give the panel 1 pixel padding Set the text dock to Fill Make the text box to have no border Then, handle mouse events on the text box, switch the