Michael Michael - 3 years ago 233
C# Question

how to display textBox control in MessageBox?

Any idea how to display textBox control in MessageBox.

I'm working on winforms projcet c#.

Thank you in advance.

Answer Source

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 .DisplayModal() on it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download