Merge MDI child toolstrip button(s) into parent toolstrip

Holly Styles <[email protected]> Mon, 5 Nov 2007 05:13:16 -0500
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <LISTSERV%[email protected]>
Hi All,

I have the need to append/replace toolbar buttons in the MDI parent window
of my application. For example my child form has a toolstrip object, on that
toolstrip is a save icon. When the child form is shown/active I need that
save icon to be appended to the parent's main toolstrip, or added as a
toolstrip into a main ToolStripPane in the parent. I have been researching
this for a couple of days and there are many references to using
ToolStripManager and it's Merge and Revert methods etc. during Child
Activated event handling. I have read this technique can lead to hideous
screen flicker however.

Can anyone recommend a best practice for this type of MDI Application
scenario? Or where the best tutes can be found? I am drawing a bit of a
blank with this one. I'm fairly new to Windows Forms as most of my
experience is ASP.NET so I havn't touched Menu's and Toolbars since my VB6 days.

Any pointers much appreciated.

Thanks and regards.

-Holly.