tags:

views:

18

answers:

1

How do I prevent DrawReversibleFrame from drawing outside of the SplitContainer and form as shown below? As you can see, the selection frame is being drawn around a control within the container, which is bigger than the visible part of the container itself.

resize image

A: 

SplitContainer.Panel2.Bounds gives you the rectangle of the portion of the right-hand side panel that's visible.

Hans Passant
Thanks for the hint.
John_Sheares