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

Filed under:
|

In C#, I would like to create a function (method) that has the following behavior:

  1. When called, create and show a form.
  2. Wait for the user to enter or select a value on the form.
  3. Return the selected value.

Is there a concise, readable way to implement this function?

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-forms