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

Home Posts Topics Members FAQ

ToolstripManage r not restoring toolbar positions.

Hi All,

I've got a few toolbars in my application hosted in a
ToolStripContai ner. I have found a problem whereby the location of a
toolbar is not restored when doing a LoadSettings if the toolbar is in
the same ToolStripPanel as specified in the settings.

For example, create a toolbar in ToolStripContai ner.TopToolStri pPanel
and save settings. Drag to tool bar somewhere else within
ToolStripContai ner.TopToolStri pPanel and then load the settings, the
tool bar does not move back to the original position. Drag the
toolbar to ToolStripContai ner.BottomToolS tripPanel and then load the
settings, the tool bar moves back to the original position within
ToolStripContai ner.TopToolStri pPanel.

Does anyone know who to get the tool bar position to be updated
properly even when the toolbar is in
ToolStripContai ner.TopToolStri pPanel when the settings are loaded?

Thanks

Nick

Mar 15 '07 #1
3 5266
VJ
Looks localsettings has issues, and can't re-locate, oh I mean just update
location. I repo the problem here, In our application. uhmm. Have to see
whether it is .NET problem.

I can see if I find time to get a sample, maybe will help people from MS to
look at. Nick if you have time or a have sample go ahead put it here.

VJ

"Undergrid" <np*******@gmai l.comwrote in message
news:11******** *************@e 1g2000hsg.googl egroups.com...
Hi All,

I've got a few toolbars in my application hosted in a
ToolStripContai ner. I have found a problem whereby the location of a
toolbar is not restored when doing a LoadSettings if the toolbar is in
the same ToolStripPanel as specified in the settings.

For example, create a toolbar in ToolStripContai ner.TopToolStri pPanel
and save settings. Drag to tool bar somewhere else within
ToolStripContai ner.TopToolStri pPanel and then load the settings, the
tool bar does not move back to the original position. Drag the
toolbar to ToolStripContai ner.BottomToolS tripPanel and then load the
settings, the tool bar moves back to the original position within
ToolStripContai ner.TopToolStri pPanel.

Does anyone know who to get the tool bar position to be updated
properly even when the toolbar is in
ToolStripContai ner.TopToolStri pPanel when the settings are loaded?

Thanks

Nick

Mar 15 '07 #2

I've uploaded a simple sample here:

http://www.undergrid.me.uk/test/WindowsApplication1.zip

Just a toolbar in a container on a form.

Click on the save button to save the position.
Move the toolbar along the same docking edge.
Click on load, nothing should happen.
Move the toolbar to one of the other edges of the form.
Clock on the load button and the toolbar should return to the position
you saved it at.

Nick

On 15 Mar, 14:12, "VJ" <nonewsaddr...@ yahoo.comwrote:
Looks localsettings has issues, and can't re-locate, oh I mean just update
location. I repo the problem here, In our application. uhmm. Have to see
whether it is .NET problem.

I can see if I find time to get a sample, maybe will help people from MS to
look at. Nick if you have time or a have sample go ahead put it here.

VJ

"Undergrid" <npthom...@gmai l.comwrote in message

news:11******** *************@e 1g2000hsg.googl egroups.com...
Hi All,
I've got a few toolbars in my application hosted in a
ToolStripContai ner. I have found a problem whereby the location of a
toolbar is not restored when doing a LoadSettings if the toolbar is in
the same ToolStripPanel as specified in the settings.
For example, create a toolbar in ToolStripContai ner.TopToolStri pPanel
and save settings. Drag to tool bar somewhere else within
ToolStripContai ner.TopToolStri pPanel and then load the settings, the
tool bar does not move back to the original position. Drag the
toolbar to ToolStripContai ner.BottomToolS tripPanel and then load the
settings, the tool bar moves back to the original position within
ToolStripContai ner.TopToolStri pPanel.
Does anyone know who to get the tool bar position to be updated
properly even when the toolbar is in
ToolStripContai ner.TopToolStri pPanel when the settings are loaded?
Thanks
Nick

Mar 15 '07 #3
VJ
Excellent, thanks. We will see if we get a response.

VJ

"Undergrid" <np*******@gmai l.comwrote in message
news:11******** **************@ l77g2000hsb.goo glegroups.com.. .
>
I've uploaded a simple sample here:

http://www.undergrid.me.uk/test/WindowsApplication1.zip

Just a toolbar in a container on a form.

Click on the save button to save the position.
Move the toolbar along the same docking edge.
Click on load, nothing should happen.
Move the toolbar to one of the other edges of the form.
Clock on the load button and the toolbar should return to the position
you saved it at.

Nick

On 15 Mar, 14:12, "VJ" <nonewsaddr...@ yahoo.comwrote:
>Looks localsettings has issues, and can't re-locate, oh I mean just
update
location. I repo the problem here, In our application. uhmm. Have to see
whether it is .NET problem.

I can see if I find time to get a sample, maybe will help people from MS
to
look at. Nick if you have time or a have sample go ahead put it here.

VJ

"Undergrid" <npthom...@gmai l.comwrote in message

news:11******* **************@ e1g2000hsg.goog legroups.com...
Hi All,
I've got a few toolbars in my application hosted in a
ToolStripContai ner. I have found a problem whereby the location of a
toolbar is not restored when doing a LoadSettings if the toolbar is in
the same ToolStripPanel as specified in the settings.
For example, create a toolbar in ToolStripContai ner.TopToolStri pPanel
and save settings. Drag to tool bar somewhere else within
ToolStripContai ner.TopToolStri pPanel and then load the settings, the
tool bar does not move back to the original position. Drag the
toolbar to ToolStripContai ner.BottomToolS tripPanel and then load the
settings, the tool bar moves back to the original position within
ToolStripContai ner.TopToolStri pPanel.
Does anyone know who to get the tool bar position to be updated
properly even when the toolbar is in
ToolStripContai ner.TopToolStri pPanel when the settings are loaded?
Thanks
Nick


Mar 15 '07 #4

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

Similar topics

4
5460
by: Jacob H | last post by:
Hello list... I'm developing an adventure game in Python (which of course is lots of fun). One of the features is the ability to save games and restore the saves later. I'm using the pickle module to implement this. Capturing current program state and neatly replacing it later is proving to be trickier than I first imagined, so I'm here to ask for a little direction from wiser minds than mine! When my program initializes, each game...
2
2373
by: Yair Sageev | last post by:
Greetings. I was running PHP Nuke on a Win2k box using Apache2Triad. Fortunately I backed up the drive using windows backup prior to the hard drive failure. Now I have installed Apache2Triad on another machine and wish to reimport the mySQL database that PHP Nuke relies upon. If anyone can tell me how to do this I would be very grateful. Thanks in advance.
102
7407
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
0
1293
by: KK | last post by:
Dear All I have an MDI Application which needs to restore it's previously closed state on subsequent openings. While closing the application, I am storing the positions of all the Mdi child windows to a file.While opening I read the positions from the file,create Mdi Childs and apply positions. My problem is when I'm recreating the Mdi child windows they are created and appear in the Z order initially and later they moved to the applied...
4
2468
by: JC Voon | last post by:
Hi: My application use tabbed interface, i need a close button at the right edge of the tool bar, is it possible ? Thanks JCVoon
1
2376
by: Robbert van Geldrop | last post by:
Hello, I have a problem restoring Exchange 2000 files. Our software has an interface to ESEBCLI2.dll for online backup and restore features. Everything works fine with Exchange 2003 and also when backing up Exchange 2000, yet restoring Exchange 2000 gives some problems: A Store is restored: * the restore is started.
1
4967
by: MyndPhlyp | last post by:
Newbie alert! VB 2005 Express. One MDIParent form and one regular Form. The MDIParent has the standard ToolStrip. The MDI Child Form has its own ToolStrip that is to be merged onto the MDIParent's ToolStrip. Sounds simple, right? I've gone through quite a few URLs that all pretty much say the same thing but I have yet to get this completely working. (Most of those URLs also seem to wander away from ToolStrip and instead go down the...
1
2381
by: Wolfgang Thomsen | last post by:
Hello, I need to process very large files which are made of blocks of data. To speed up the reading of a specific block, I let my program note down the streampos of each block's beginning in a file, which seems to work. For reading the stream positions back, I use the following code: while(!indexfile.eof()) { int position;
5
6568
by: Troels Arvin | last post by:
Hello, Every so often, I'm asked to help people recover data from tables that were either dropped or where to much data was DELETEed. The complications related to restoring data are a problem. The SAS users are laughing because they can (to a certain extend) easily go back to an earlier SAS table by simply starting dsm. Of course, a flat file table is different than a relational table; but still, the trouble related to restoring DB2...
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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,...
0
10618
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10371
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
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...
1
7649
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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();...
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
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.