469,927 Members | 1,904 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

using splitter object

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 :)
Feb 20 '08 #1
8 1449
On Feb 20, 3:33*pm, "Mr. X." <no_spam_please@nospam_please.comwrote:
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.
Feb 20 '08 #2
On Feb 20, 3:33*pm, "Mr. X." <no_spam_please@nospam_please.comwrote:
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
Feb 20 '08 #3
"Mr. X." <no_spam_please@nospam_please.comschrieb:
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 S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 20 '08 #4
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 :)
Feb 20 '08 #5
"Mr. X." <no_spam_please@nospam_please.comschrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 20 '08 #6
Thanks,
.... but there is not such property splitPosition.
Feb 21 '08 #7
"Mr. X." <no_spam_please@nospam_please.comschrieb
Thanks,
... but there is not such property splitPosition.
This time he meant the SplitterDistance property. ;-) (you get a list
after typing the ".")
Armin

Feb 21 '08 #8
"Armin Zingler" <az*******@freenet.deschrieb:
>Thanks,
... but there is not such property splitPosition.

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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 21 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by MooMaster | last post: by
3 posts views Thread by Andre Loker | last post: by
1 post views Thread by Krish | last post: by
2 posts views Thread by Carl Gilbert | last post: by
2 posts views Thread by Mika M | last post: by
5 posts views Thread by Sam | last post: by
4 posts views Thread by Marina | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.