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
Post a Comment