By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,213 Members | 1,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,213 IT Pros & Developers. It's quick & easy.

How to move a splitter

P: n/a
On a form I have a control that is docked top.
Under it a splitterbar that is also docked top.

If I want to programmatically move the splitter how do I do that:
Set the height of the control or the top of the splitter?

I have various instances of similar scenarios and cut-and-try sometime I can
get it to work and sometimes I can not.

What is the correct way?
Thanks
Feb 3 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
" Frank" <fr***@a-znet.comschrieb
On a form I have a control that is docked top.
Under it a splitterbar that is also docked top.

If I want to programmatically move the splitter how do I do that:
Set the height of the control or the top of the splitter?

I have various instances of similar scenarios and cut-and-try
sometime I can get it to work and sometimes I can not.

What is the correct way?
I'd set the Splitter's Splitposition property.
Armin
Feb 3 '07 #2

P: n/a
works great.

I saw this after I tried SplitPosition.

Gets or sets the distance between the splitter control and the container
edge that the control is docked to. Splitter.SplitPosition has been replaced
by SplitContainer.Panel1MinSize and SplitContainer.Panel2MinSize and is
provided only for compatibility with previous versions.

The text for Panel1MinSize does not sound like a replacement for
SplitPosition!

What do you think.

Thanks



"Armin Zingler" <az*******@freenet.dewrote in message
news:ug**************@TK2MSFTNGP05.phx.gbl...
>" Frank" <fr***@a-znet.comschrieb
>On a form I have a control that is docked top.
Under it a splitterbar that is also docked top.

If I want to programmatically move the splitter how do I do that:
Set the height of the control or the top of the splitter?

I have various instances of similar scenarios and cut-and-try
sometime I can get it to work and sometimes I can not.

What is the correct way?

I'd set the Splitter's Splitposition property.
Armin

Feb 3 '07 #3

P: n/a
Why not use SplitContainer.SplitterDistance?

Thanks,

Seth Rowe
On Feb 3, 2:23 pm, " Frank" <f...@a-znet.comwrote:
works great.

I saw this after I tried SplitPosition.

Gets or sets the distance between the splitter control and the container
edge that the control is docked to. Splitter.SplitPosition has been replaced
by SplitContainer.Panel1MinSize and SplitContainer.Panel2MinSize and is
provided only for compatibility with previous versions.

The text for Panel1MinSize does not sound like a replacement for
SplitPosition!

What do you think.

Thanks

"Armin Zingler" <az.nos...@freenet.dewrote in message

news:ug**************@TK2MSFTNGP05.phx.gbl...
" Frank" <f...@a-znet.comschrieb
On a form I have a control that is docked top.
Under it a splitterbar that is also docked top.
If I want to programmatically move the splitter how do I do that:
Set the height of the control or the top of the splitter?
I have various instances of similar scenarios and cut-and-try
sometime I can get it to work and sometimes I can not.
What is the correct way?
I'd set the Splitter's Splitposition property.
Armin

Feb 4 '07 #4

P: n/a
I'll look that up but SplitPosition seems to work OK

thanks

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11*********************@p10g2000cwp.googlegro ups.com...
Why not use SplitContainer.SplitterDistance?

Thanks,

Seth Rowe
On Feb 3, 2:23 pm, " Frank" <f...@a-znet.comwrote:
>works great.

I saw this after I tried SplitPosition.

Gets or sets the distance between the splitter control and the container
edge that the control is docked to. Splitter.SplitPosition has been
replaced
by SplitContainer.Panel1MinSize and SplitContainer.Panel2MinSize and is
provided only for compatibility with previous versions.

The text for Panel1MinSize does not sound like a replacement for
SplitPosition!

What do you think.

Thanks

"Armin Zingler" <az.nos...@freenet.dewrote in message

news:ug**************@TK2MSFTNGP05.phx.gbl...
>" Frank" <f...@a-znet.comschrieb
On a form I have a control that is docked top.
Under it a splitterbar that is also docked top.
>If I want to programmatically move the splitter how do I do that:
Set the height of the control or the top of the splitter?
>I have various instances of similar scenarios and cut-and-try
sometime I can get it to work and sometimes I can not.
>What is the correct way?
I'd set the Splitter's Splitposition property.
Armin


Feb 4 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.