如何更改MessageBox的位置? [英] How do I change the MessageBox location?
本文介绍了如何更改MessageBox的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要更改消息框位置。我不希望它是在页面的中心
MessageBox.Show(你好);
解决方案
通常情况下,你不能改变的启动标准的位置
- 创建自己的自定义消息:消息框
你的问题的解决方案框。
有例如对
CodeProject上创作的。 - 用复杂的方式的Windows挂钩
程序(WinAPI的)。
I need to change the message box location. I don't want it to be in the center of the page.
MessageBox.Show("Hello");
解决方案
Normally, you can't change startup location of standard message box.
Solutions for your question:
- Create your own custom message box. There is example of creation on CodeProject.
- Complicated way using Windows Hook Procedure (WinAPI).
这篇关于如何更改MessageBox的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文