473,806 Members | 2,582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with splitcontainer

4 New Member
Hi,

I have the following problem: have a splitcontainer with horizontal orientation. The application saves the current settings of the user interface including the splitter distance when the form is closed. When the form is load up the settings should be restored. The problem I have is that everytime the form is loaded the splitter is not positioned correctly. Everytime a value is added to the original value of saved one. I figured it out that if I don't set the splitcontainer' s dock propery to "fill" and I don't set the anchor property to "bottom", everything is working fine.

Any suggestion is really appreciated.
Feb 29 '08 #1
1 2128
Plater
7,872 Recognized Expert Expert
Dock-fill overrides all anchor settings and is used to take up every section of space it can.
Feb 29 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
3086
by: J.S. | last post by:
I have a TreeView control in the left panel of a SplitContainer. When I click on various nodes in the TreeView I would like different sets of buttons and textboxes to appear in the right panel. Is this doable? Also, it seems that the TreeView nodes do not have a click event. Is that correct? Thanks, J.S.
0
1786
by: Brian A. Cline | last post by:
I have a SplitContainer that holds a TreeView and ListView. When using the splitter to resize them, a focus rectangle is shown during and after the resize event. Is there any way to prevent this? I have already tried setting the SplitContainer's TabStop property to false but it had no effect on the aforementioned behavior. Thanks, Brian Cline
0
1441
by: Didier Bolf | last post by:
hello I use the framework2.0 When you have a Form which contains a usercontroll which contains a splitcontainer which contains a TreeView in the left panel of the splitcontainer. Then when the text of a treenode is too long for the width of the left panel of the splitcontainer, a tooltip
1
5398
by: Ronald S. Cook | last post by:
At design time, how can I change the name of the SplitterPanels that are children within my SplitContainer control? I was able to name the SplitContainer splContainer, but I can't see how to change the name of the panels. They are splContainer.Panel1 and splContainer.Panel2... very annoying. Thanks for any help, Ron
7
10406
by: newscorrespondent | last post by:
I want to save the state of a splitcontainer when an application ends. I also save the form state. The SplitContainer does not seem to have a well defined place to put intiialization and termination code. I have tried to use my first splitter moved event to set the splitter position but I am getting several splitter moved events before my form is displayed. One is from the form initialization code and the second is from my code that...
0
1303
by: Ronald S. Cook | last post by:
Thanks in advance for reading/responding. In my Windows forms app, I was going to have an Infragistics ListBar control docking/filling the left panel of a SplitContainer, and use the right panel to load my user controls. But now I want to sometimes have another user control (narrow.. to show a list) next to (on the right of) my ListBar. I'll want the right panel to spring/maximize to as much space as it can take up. If there is just...
2
6231
by: Doc John | last post by:
We developed a Win application that basically consists of an Mdi Form and several child Forms. Now we want to change its appearance so that it has an Outlook-like appearance: it would have a panel on the left with several buttons, and when I press those buttons the individual Forms would open up on the right panel. How difficult would this transition be? I've added a splitContainer to my Mdi Form, but I'm not sure how to display a Child...
10
2495
by: Rotsey | last post by:
Hi, I have a Listbox in a Panel of SplitContainer. I want to anchor it so the listbox grows/shrinks vertically with the resizing the splitcontainer. This is my code What happens is it sizes the listbox horizontally about nearly the same size as the split container width.
5
4747
by: kulabhishek | last post by:
Hello, I have developed one user control using SplitContainer. It is simply like two textboxes connected to each other with splitter in between them. Whenever I increase width of the control 1. By dragging it with right edge, I want the splitter and the left textbox to remain fixed and 2. By dragging it with left edge, I want the splitter and the right textbox to remain fixed. We can set only one of the panels as FixedPanel.
0
9597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10372
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10110
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3851
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.