using splitter object

M

Mr. X.

Hello.
I have put 3 components on the form :
Panel . dock property is left (left panel).
Spliter. dock property is left.
Panel. dock property is fill (right panel).

I see that the spliter has some width, and all the elements on the right
panel,
are invisible when they are neer the left edge of the right panel
(the splitter component hides them).

How can I overcome that problem ?

Thanks :)
 
K

kimiraikkonen

Hello.
I have put 3 components on the form :
Panel . dock property is left (left panel).
Spliter. dock property is left.
Panel. dock property is fill (right panel).

I see that the spliter has some width, and all the elements on the right
panel,
are invisible when they are neer the left edge of the right panel
(the splitter component hides them).

How can I overcome that problem ?

Thanks :)

Well, if i understood your issue correctly, i have seen that kind of
issues and IMHO the best way is to solve is to use "anchor" property
instead of docking which works work me. But i've found that dragging
an objects edges to fit the form does NOT 1:1 fit control (a very tiny
space is present or you should enter spacing values manually in
properties window), but which works as you wish.

For example add a webbrowser control on a form that's docked on the
form center by default, then add status bar. You'll see that one of
these controls will be hidden / mixed , therefore remove docking
property and set "anchor" property's value to up / left/ right to fit
your control around the container.

Sometimes right clicking on your control and "bring to front" command
is used to work out this issue.

Hope this helps.
 
K

kimiraikkonen

Hello.
I have put 3 components on the form :
Panel . dock property is left (left panel).
Spliter. dock property is left.
Panel. dock property is fill (right panel).

I see that the spliter has some width, and all the elements on the right
panel,
are invisible when they are neer the left edge of the right panel
(the splitter component hides them).

How can I overcome that problem ?

Thanks :)

Also look at this link that contains good definitions:
http://www.startvbdotnet.com/forms/form4.aspx
 
H

Herfried K. Wagner [MVP]

Mr. X. said:
I have put 3 components on the form :
Panel . dock property is left (left panel).
Spliter. dock property is left.
Panel. dock property is fill (right panel).

I see that the spliter has some width, and all the elements on the right
panel,
are invisible when they are neer the left edge of the right panel
(the splitter component hides them).

In addition to the other replies: If you are using .NET 2.0 or newer, you
may want to use the SplitPanel control instead of the splitter control.
 
M

Mr. X.

You meant : SplitContainer.
When first time I ran my program,
the splitter line is hidden, so I need to drag it once.

How can I solve the above problem ?

Thank :)
 
H

Herfried K. Wagner [MVP]

Mr. X. said:
You meant : SplitContainer.

Yes, sorry...
When first time I ran my program,
the splitter line is hidden, so I need to drag it once.

Are you talking about SplitContainer? You can set the 'SplitPosition'
property to position the splitter.
 
A

Armin Zingler

Mr. X. said:
Thanks,
... but there is not such property splitPosition.

This time he meant the SplitterDistance property. ;-) (you get a list
after typing the ".")


Armin
 
M

Mr. X.

SpliiterDistace is somewhere at the middle
(splitter distance is not zero),
besides, I have moved it by the IDE and see it on design time,
while splitterDistance always changes when I drag it,
so I don't think that's the problem.

I cannot see the splitter line at runtime, unless first time I touch it and
drag it even a pixel behind
(When border stylle is set to none).

Thanks :)
 
H

Herfried K. Wagner [MVP]

Armin Zingler said:
This time he meant the SplitterDistance property. ;-) (you get a list
after typing the ".")

Sorry, I didn't have VS installed on the machine and thus I guessed the
property's name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top