子窗体最小化顶级窗体

编程入门 行业动态 更新时间:2024-10-24 20:14:35
本文介绍了子窗体最小化顶级窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我正在将用户控件加载到窗体(面板)中.单击用户控件上的按钮后,它会打开弹出窗口(窗体),以最小化顶层窗体.弹出窗口应在顶层"表单上方打开.任何想法都请帮忙. 我尝试将TopMost属性设置为true但没有运气. 非常感谢, Sri

Hi All,I am loading usercontrols inside form(Pannel).Upon click on button on usercontrol it opens popup(form) which minimizing the toplevel form. The pop up should open above Toplevel form. Any idea please help.I tried by setting TopMost property to true but no luck.Many Thanks,Sri

推荐答案

尝试通过Show()方法显示后设置此属性.通常可以解决该问题. Try to set this property after displayed by Show() method. That usually fixes it.

更多推荐

子窗体最小化顶级窗体

本文发布于:2023-11-04 05:22:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1557059.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:窗体   最小化

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!