I want to be able to click on my user control and not have it steal focus from any other control. I know when you click on a label it doesn't steal focus. How can this be done?
Asked
Active
Viewed 8,393 times
1 Answers
4
Try disabling your control's ControlStyles.Selectable flag.

ChrisW
- 54,973
- 13
- 116
- 224
-
I just tried it in the constructor and OnLoad of my control and it didn't work: this.SetStyle(ControlStyles.Selectable, false); – John_Sheares Jan 27 '11 at 01:07
-
1Google suggests http://stackoverflow.com/questions/785672/is-there-a-way-to-make-a-usercontrol-unfocussable – ChrisW Jan 27 '11 at 01:12