How to move a Splitter programatically ?

  • Thread starter Thread starter james
  • Start date Start date
J

james

<using a virtical splitter and moving it over to the right 5 units>

I have tried setting its location = new point ( splitter.Location.X + 5,
splitterLocation.Y )

but it doesn't move. I have tried following it up with an Invalidate(true)
but it
still wont move. Does anyone know how to re-locate a splitter via code
at run time ?

thanks,

JIM
 
If you have this form...

_____________
| | |
| Left | Fill |
| | |
| | |
| | |
| | |
---------------------------

....with a splitter between the two controls. Then you can move the
splitter by resizing the left-docked control.

/hugo
 
I could be wrong but I think all you have to do is change the width of the
control it's linked to. Is that what you mean?
 
Doh... I found it a minute after I posted, I need to set the SplitPosition.

thanks for the replies

JIM
 
Back
Top