Hi Peter,
the splitter's location is based on the size of the controls that are above
or left of it.
So you'll have to resize the panel that's docked top.
For example:
Panel1.Size = New Size(Panel1.Size.Width, Panel1.Size.Height + 20)
hth Greetz Peter
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.
"Peter" <zl*****@sina.com> schreef in bericht
news:#4**************@TK2MSFTNGP09.phx.gbl...
Hi,
Does anyone know how to drag a splitter by coding.
I will put three controls on form1,two panels and a splitter. The first
panel's dock property is set to top, the splitter's dock is also top and
the second panel's dock is fill. Now I want to expand the first panel's area
and shrink the second panel by draging the splitter in code but failed.
Thanks in advance
Peter