信息框位置

编程入门 行业动态 更新时间:2024-10-26 08:23:57
本文介绍了信息框位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 如何在Windows窗体中将消息框的默认位置更改为我方便的位置. 问候 Vasanth

Hi guys, How can I change the message Box default position to my convenient position in the windows forms. Regards Vasanth

推荐答案

您可以创建自己的消息框.因为您无法更改Windows窗体的消息框默认位置.最后一个是创建您自己的消息框的链接. stackoverflow/questions/5289148/how-do-i- change-the-messagebox-location [ ^ ] > stackoverflow/questions/5706369/how-为消息框设置一个 [ ^ ] 自定义消息框 [ ^ ] You can create your own message box.Because you can''t change message box default position of windows forms.See some discussion over this...and last one is the link to create your own messagebox. stackoverflow/questions/5289148/how-do-i-change-the-messagebox-location[^] stackoverflow/questions/5706369/how-to-set-a-custom-position-for-a-messagebox[^] A Custom Message Box[^]

您不能. 您可以创建一个看起来像MessageBox的Form,并将Location属性设置为所需的位置.将StartPosition属性设置为FormStartPosition.Manual并使用ShowDialog()方法将其显示为模态"对话框. You can''t. You can create a Form that looks like a MessageBox and set the Location property to where you want; set the StartPosition property to FormStartPosition.Manual and use the ShowDialog() method to display it as a Modal dialog.

这里是您可以使用的一个示例:如何使MessageBox集中在其父表单上 [ ^ ] Here''s one example you could possibly use: How to make MessageBoxes center on their parent forms[^]

更多推荐

信息框位置

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

发布评论

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

>www.elefans.com

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