消息框未显示在文本框控件旁边
问题描述:
我的应用程序中包含以下代码.
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[^]