I have a UserControl which can have childcontrol.
The usercontrol have the styles:
this.SetStyle(
ControlStyles.AllPaintingInWmPaint |
ControlStyles.OptimizedDoubleBuffer |
ControlStyles.Selectable |
ControlStyles.SupportsTransparentBackColor |
ControlStyles.UserPaint,
true);
Now if I click on the usercontrol (not an child-control) i want the usercontrol to keep the focus, but the focus automatically goes to the first child-control. The same thing happens if i use the tab key.
i already tried to override OnGotFocus
without success.
Any idea?