如何在MessageBox中显示textBox控件? [英] how to display textBox control in MessageBox?

查看:103
本文介绍了如何在MessageBox中显示textBox控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何想法如何在MessageBox中显示textBox控件.

Any idea how to display textBox control in MessageBox.

我正在开发Winforms项目C#.

I'm working on winforms projcet c#.

谢谢.

推荐答案

您不能.MessageBox是一个特殊的容器,旨在仅显示消息和按钮.相反,您可以使用所需的任何控件创建自己的Form,并在其上使用 .ShowDialog().

You can't. MessageBox is a special container designed to only show a message and buttons. Instead, you can create your own Form with whatever controls you want, and use .ShowDialog() on it.

这篇关于如何在MessageBox中显示textBox控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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