信息框位置 [英] Message box position

查看:66
本文介绍了信息框位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何在Windows窗体中将消息框的默认位置更改为我方便的位置.

问候
Vasanth

Hi guys,

How can I change the message Box default position to my convenient position in the windows forms.

Regards
Vasanth

推荐答案

您可以创建自己的消息框.因为您无法更改Windows窗体的消息框默认位置.最后一个是创建您自己的消息框的链接.
http://stackoverflow.com/questions/5289148/how-do-i- change-the-messagebox-location [ ^ ]
> http://stackoverflow.com/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.
http://stackoverflow.com/questions/5289148/how-do-i-change-the-messagebox-location[^]
http://stackoverflow.com/questions/5706369/how-to-set-a-custom-position-for-a-messagebox[^]
A Custom Message Box[^]


您不能.
您可以创建一个看起来像MessageBoxForm,并将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[^]


这篇关于信息框位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆