0

My textbox is set to read-only, but I need to disable the focus on a textbox. There's an error that a read-only textbox could not lost focus.

Is there any other way to get a white backcolor that has a particular width? I tried to do it with textbox and set the formborderstyle to none and it works just like the way I wanted to, but it looks kind of weird when there is a focus.

2
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by AngelicOne
1

Is there any other control on the form, you can set its primal focus? If you can try to set the focus to the form:
this.Focus();

0

that doesn't focus to the form. :( yeah maybe I would just put the focus on a label.

0

I just read that focus can't be set to a label because a label doesn't accept input. Only the controls that accept input can be focus.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.