c# - Merging MDI toolbar -


In a pure MDI application, the child's menu is automatically merged into the parent menu. There is a way to do the same with tool bars. The concept is to send the toolbar of the active tool to the original Toolbar bar.

I got it but I could not get it.

can be done in the following ways: can be found in more detail both forms should have toolstreet.

  // Protected override blank OnMD ChildActivate (EventRGS E) in the Minor form {base.OnMdiChildActivate (e); // Required Handle Childmare (); // Manage the merger} Personal Zero handled childmare () {ToolStripManager.RevertMerge (tsParent); IChildForm ChildForm = ActiveMdiChild as IChildForm; If (ChildForm! = Null) {ToolStripManager.Merge (ChildForm.ChildToolStrip, tsParent); }} Public partial class frmChild: form, iccelform {...} interface iceldform {ToolStrip ChildToolStrip {get; Set; }}  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -