How do I put a Password field in a MessageBox?

5

How to insert a field so that I can put a password in a MessageBox .

I could call a form , but wanted something simpler and faster, I would like that when I clicked on a button it would provide a field to put a password that will be set later, release button function.

    
asked by anonymous 30.12.2014 / 15:25

1 answer

7

Can not, MessageBox was created to issue alerts, not data entry.

You'll have to create a Form and use a TextBox in it. You can use PasswordChar to hide the typed data.

If you want to simulate the behavior called modal of MessageBox you can use ShowDialog() " in the normal form.

    
30.12.2014 / 15:34