C# input dialog as a function.
Posted
by mcoolbeth
on Stack Overflow
See other posts from Stack Overflow
or by mcoolbeth
Published on 2010-05-21T15:12:44Z
Indexed on
2010/05/21
15:20 UTC
Read the original article
Hit count: 360
c#
|windows-forms
In C#, I would like to create a function (method) that has the following behavior:
- When called, create and show a form.
- Wait for the user to enter or select a value on the form.
- Return the selected value.
Is there a concise, readable way to implement this function?
© Stack Overflow or respective owner