消息框未显示在文本框控件旁边 [英] Message box does not show up next to the text box control
本文介绍了消息框未显示在文本框控件旁边的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序中包含以下代码.
Hi,
I have following code in my application.
MessageBox.Show(txtBxName, "Name cannot be blank", "Input Data Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
但是消息框不会显示在文本框txtName旁边.为什么?
Jyoti Bhatnagar
But the Message box does not show up next to the text box txtName. Why?
Jyoti Bhatnagar
推荐答案
您无法设置标准消息框的位置,大小或大部分外观.但是,您可以显示如本文所述的自定义消息框:
自定义消息框 [
You can''t set the location, or size or most of the look and feel of the standard message box. But, you can show a customized messagebox like described in this article:
A Custom Message Box[^]
这篇关于消息框未显示在文本框控件旁边的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文