What's the simplest way to ask for user input through Modal in Win Form
Posted
by Refracted Paladin
on Stack Overflow
See other posts from Stack Overflow
or by Refracted Paladin
Published on 2010-03-26T15:18:53Z
Indexed on
2010/03/26
15:23 UTC
Read the original article
Hit count: 375
What is the simplest way to implement a Modal(popup) MessageBox
that allows a custom value to be entered and returned. In my case, a String
.
Maybe I am over thinking this but I figured I'd ask. I plan to just create a new Form. Add a label
, a textbox
, two buttons
. Assign the textbox
to a property
and from my main form
call a ShowDialog()
on it.
Will I be able to still access the property
that way or should I somehow return the value?
Is this a decent way of doing this?
© Stack Overflow or respective owner