473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1529
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: MooMaster | last post by:
This is more of a wxPython centric question, but not seeing reference to this on the wx group I thought I'd try here since many here also use wxPython toolkit. I started learning GUI development...
3
by: Andre Loker | last post by:
Hi! For my current application I'm looking for a four-way-(cross) splitter control (as often seen in 3D-editors). The .NET Splitter-class is (IIRC) only a two-way splitter. Does anyone know such...
1
by: Krish | last post by:
This is my first try with C# windows gui devlopment, is it correct to say that gui development in C# is windows forms. I would like to create a form with two sections, 2 datagrids, I would like...
4
by: BBM | last post by:
I'm trying to set up a form with two panels divided by a Splitter control. I can make the Splitter work in the situations described in the documentation (Listbox or TreeView on left w/Dock set to...
2
by: Carl Gilbert | last post by:
Hi Is it possible to position a button for instance on a splitter control so when the splitter is moved, the button stays positioned over the splitter? Regards, Carl.
2
by: Mika M | last post by:
Hello! My windows form has Splitter control on it, and I save splitter's last X-location when user changes it like ... Private Sub Splitter1_SplitterMoved(ByVal sender As Object, ByVal e As...
5
by: Sam | last post by:
Hi, I have a panel docked to the bottom of my form. This panel can be expanded vertically by clicking on a button. When the user click on the button again, the panel is then collapsed. The panel...
4
by: Marina | last post by:
Hi, It seems that I am seeing an inconsistency in the arguments that get passed to the SplitterMoved vs. SplitterMoving events. As in, the ones for the SplitterMoving are correct coordinates,...
1
by: arnoldino | last post by:
hi i wanna make a form on which there are 6 panels. on form load the first panel will show up, and if the user clicks on a button on taht panel the first panel will hide and the second will show...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.