3

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?

John_Sheares
  • 1,404
  • 2
  • 21
  • 34

1 Answers1

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
  • 1
    Google suggests http://stackoverflow.com/questions/785672/is-there-a-way-to-make-a-usercontrol-unfocussable – ChrisW Jan 27 '11 at 01:12