MDI App, MenuStrip and Icon
-
I have an MDI application with, obviously, an MDI container form that includes a MenuStrip that is docked to the top of the form. By clicking on various defined ToolStripMenuItems, a variety of child forms can be opened that are smaller than the MDI container forms window, but can be maximized to fill the window. All of these forms include the same icon that is loaded in each form's load event from the resource properties with code similar to...
this.Icon = MyProg.Properties.Resources.IconName;
For some reason when I maximize any of the child forms, instead of the child form's icon and control box merging with the MenuStrip of the MDI container, a separate line above the MenuStrip is being created with just the icon and the control box. I know I am missing the forest for the trees on why this is occuring, because I have another MDI app where I do not have this problem, and I can't figure out what is different between the two. Does anyone who actually read this far have any ideas why this might be occurring? Thanks.
-
I have an MDI application with, obviously, an MDI container form that includes a MenuStrip that is docked to the top of the form. By clicking on various defined ToolStripMenuItems, a variety of child forms can be opened that are smaller than the MDI container forms window, but can be maximized to fill the window. All of these forms include the same icon that is loaded in each form's load event from the resource properties with code similar to...
this.Icon = MyProg.Properties.Resources.IconName;
For some reason when I maximize any of the child forms, instead of the child form's icon and control box merging with the MenuStrip of the MDI container, a separate line above the MenuStrip is being created with just the icon and the control box. I know I am missing the forest for the trees on why this is occuring, because I have another MDI app where I do not have this problem, and I can't figure out what is different between the two. Does anyone who actually read this far have any ideas why this might be occurring? Thanks.