How can I move the splitter control programmatically?

I have a splitter control in the middle of a form docked at top side.

I can move the splitter control up or down by a mouse drag, physically.

How can I do programmatically move up or down

For example, if I doubleclick it, the control has to go top, next double click it should go bottom.

Is it possible If so, just I need some hint how to do

Thanks,

Jil.


Answer this question

How can I move the splitter control programmatically?

  • Jeroen Mostert

    Can you use splitter1.Height



  • zoom maxed

    Thanks EZanker.

  • JLundgren

    simply set the height of the control the splitter is docked to.

    e.g. if your form has a panel docked to the top, a splitter docked top (to the panel) and then a second panel below the splitter set to dock fill.  The set the height of the first panel in order to position the splitter.

  • How can I move the splitter control programmatically?