473,397 Members | 2,033 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,397 software developers and data experts.

Saving toolstrip settings Goofy?

Does the toolstripcontainer etc work at all?

I want to save the settings for the toolstrip positions in my app so they
start up with the saved positions.

Tried using:

ToolStripManager.SaveSettings(Me) in form.closing with
ToolStripManager.LoadSettings(Me) in form load

but this does not always work right. I have a form with nothing but a
toolstripcontainer and 3 toolstrips of different size. I can arrange the
strips one way, exit, restart, the strips go back. Arrange different,
restart, now they dont go back to where they were, they blow up and do all
kinds of goofy stuff.

Some arrangements the toolstrips are restored properly, others not.

I tried:

ToolStrip1.Location = My.Settings.tool1location
ToolStrip2.Location = My.Settings.tool2location
ToolStrip3.Location = My.Settings.tool3location

I will spare the gory details, I think I am saving and have things setup
right, but same problem.

Some arrangements the toolstrips are restored properly, others not.

I look at the values of My.Settings.tool1location and son of a gun if it
seems like the x, y values are mixed up for the controls sometimes, not
others, whaaa the...

Does this stuff work at all or is it totally goofy? What am I missing about
how this works? I guess it is deciding they dont fit and moving them, but
they did fit when saved. What is changing?

The whole thing is even worse in the vs2005 designer. My real app has about
10 tool strips on the main form and they jump all over and disappear and move
around for no good reason. The tool container resizes itself and makes a mess
of the whole house. I am about to kick them all out but Ive spent weeks
implementing them and they look good and they are nice to use as buttons etc.

Thanks,

Tom

Aug 22 '07 #1
0 1555

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gene kelley | last post by:
I'm migrating/rewriting one of my VB6 apps to VB2005. In the process, I'm trying to avoid using third party activex controls used in the VB6 project. One of the third party controls in the VB6...
0
by: MLM450 | last post by:
Does anybody know how to load a ToolStrip's location within a ToolStripPanel? I have several ToolStrips and want them to remember their location from one session to the next. I have tried saving...
1
by: PJ6 | last post by:
This would have been better if I could have just implemented an interface or two to author my own toolstrip controls... but no, I have to inherit from just the existing ones. Fine, I thought... ...
0
by: Jon Davis | last post by:
I'm taking the items from a menustrip of a control and moving them to the parent form's menustrip: private void TakeMenus(AdminControl ac) { foreach (Control c in ac.Controls) { if (c is...
0
by: =?Utf-8?B?Q2hyaXMgV2Fsa2Vy?= | last post by:
Using just the designer, is there a way to PropertyBind ToolStrip items (Buttons, TextBox....)? I can easily do this with the regular windows controls. For example, I place a TextBox on my...
0
by: =?Utf-8?B?Q2hyaXMgV2Fsa2Vy?= | last post by:
PropertyBinding can be a great way to save user settings, but there is a problem with using PropertyBinding on ToolStrip items. I've found a solution to the problem and am sharing it here since I...
0
by: =?Utf-8?B?VHJhY2tz?= | last post by:
Hi, I have always saved my app settings in a single file of my own making. Now I am updating for vista. I have been playing with my.settings and it seems flakey or hard to use. So the...
0
by: Martijn Mulder | last post by:
The ToolStrip on top of my form is to small. I want to increase its height. Simply setting the Height-property doesn't change the height, though. So I tried to place the ToolStrip in a...
1
by: Tom P. | last post by:
It's kind of hard to explain (so if you need more just ask) and any help would be greatly appreciated. I am writing a side-by-side file manager. On each side I have a DropDownButton that holds...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.