开发者

main form resizing not showing the image buttons in child form

开发者 https://www.devze.com 2023-04-10 07:25 出处:网络
I am working on a .NET C# application that has a main Form which is MDI container. When the user resizes the main for开发者_Python百科m, scroll bars appear and the imagebuttons are covered by the scro

I am working on a .NET C# application that has a main Form which is MDI container. When the user resizes the main for开发者_Python百科m, scroll bars appear and the imagebuttons are covered by the scroll bars of the mainform...

When the form first loads the buttons are shown correctly.

Resizing the form(main form), the image buttons in child form become invisible (they are covered by main from scroll bars)

Would any one pls help on this for displaying images in child form ..

Many thanks


Try merging the "image" buttons to the MDI Parent's ToolStrip. You have to make the ToolStrip control on the child form invisible and set the MergeAction and MergeIndex properties in order to get it to work. See ToolStripManager.Merge Method.

If you want them to stay on the child form, the scrollbars are going to come into play. It's sort of the deal with MDI forms.

0

精彩评论

暂无评论...
验证码 换一张
取 消