469,117 Members | 1,321 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,117 developers. It's quick & easy.

Move splitter

How do I move the splitter inside of code.

if(TypeA)
{
this.pnlHXMLList.Visible = false;
this.splTop.is.Top = 65;

}

else

{

this.pnlHXMLList.Visible = true;

this.splTop.is.Top = 165;

}


Nov 16 '05 #1
3 5772
Hi MFRASER,

You cannot move the splitter because it is *docked* in terms of
WindowsForms' docking. When controls are docked location and normally one of
the sizes (unless the control is docked *Fill*) cannot be changed. In a case
of docking *Top* for example only controls Height can be changed.

In order to move the splitter programmatically (in your case the splitter is
docked *Top* as far as I understand from the code you posted) up or down you
can change the Height of the control which is above the splitter.

--
HTH
Stoitcho Goutsev (100) [C# MVP]
"MFRASER" <mf*****@henwoodenergy.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
How do I move the splitter inside of code.

if(TypeA)
{
this.pnlHXMLList.Visible = false;
this.splTop.is.Top = 65;

}

else

{

this.pnlHXMLList.Visible = true;

this.splTop.is.Top = 165;

}

Nov 16 '05 #2

Ok. I will add all the controls to a panel and change the heighth of
the panel instead of the location of the splitter. Thanks
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
MFRASER wrote:
How do I move the splitter inside of code.

if(TypeA)
{
this.pnlHXMLList.Visible = false;
this.splTop.is.Top = 65;

}

else

{

this.pnlHXMLList.Visible = true;

this.splTop.is.Top = 165;

}


mSplitterVert.SplitPosition = pos;
HTH,
Andy
Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by John | last post: by
3 posts views Thread by Andre Loker | last post: by
1 post views Thread by Krish | last post: by
reply views Thread by Atara | last post: by
2 posts views Thread by Mika M | last post: by
2 posts views Thread by Istvan | last post: by
4 posts views Thread by Frank | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.