Geeks With Blogs


Add to Google

Tim Hibbard CEO for EnGraph software

The ToolStripManager is a great way to save the position of toolbars on your WinForm apps.  More info here.  It works a little bit differently with ClickOnce applications, but it is an easy fix.  Just set the key to a unique string.  The key would probably have to be unique for the entire machine, but I'm not sure about that.  The code looks like this:


void formValidateBatch_FormClosing(object sender, FormClosingEventArgs e) { ToolStripManager.SaveSettings(this,"medicaidFormValidate3116789"); } private void formValidateBatch_Load(object sender, EventArgs e) { ToolStripManager.LoadSettings(this, "medicaidFormValidate3116789"); }


Technorati tags: , ,
Posted on Friday, March 9, 2007 11:22 AM .NET , ClickOnce | Back to top

Comments on this post: ToolStripManager with ClickOnce

# jfo's coding
Requesting Gravatar...
Tim has posted a gotcha for remembering ToolStrip positions in a ClickOnce application.
Left by on Mar 14, 2007 11:06 AM

Your comment:
 (will show your gravatar)

Copyright © Tim Hibbard | Powered by: