dotnetmonitor.com |
|
|||||||||||
| The default behavior for the splitter is to
take focus once selected. If you want the splitter to be movable without taking
focus you can do one of two things:
1. Use the custom control defined in the SplitContainerNoFocus sample 2. Insert the following code in your project, and attach these events to all of the SplitContainers that you dont want stealing focus. // Temp variable to
store a previously focused control private void splitContainer_MouseDown(object sender, MouseEventArgs e) private Control getFocused(Control.ControlCollection controls) private void splitContainer_MouseUp(object sender, MouseEventArgs e) |
|||||||||||