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?