Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to avoid Focus on SplitContainer?

The WinForm SplitContainer gets the focus when it's dragged or clicked, while the Splitter does not. The side-effect of this, is that dragging a SplitContainer bar fires Leave/Validate on other controls, and I need to avoid this.

I already tried setting TabStop and CausesValidation to False, but with no success.

Is there a way to stop the SplitContainer from getting focused? (not a big deal, I can still use the old Splitter, but I lose some nice VS properties...)

like image 612
Filini Avatar asked Nov 22 '25 01:11

Filini


1 Answers

Remove the SplitContainer control and replace it manually with Panel and Splitter controls. A little more effort, but a much cleaner outcome.

like image 50
Matt Hanson Avatar answered Nov 23 '25 17:11

Matt Hanson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!