473,797 Members | 2,933 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 5264
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
5457
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
2372
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
7403
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
1292
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
2467
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
2374
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
4963
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
6567
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
9685
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
10468
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...
0
10245
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6802
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
5458
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4131
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
2
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2933
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.