.

Simple WPF input prompt

This is the simplest way to prompt a user for input from a WPF app:

var inputBox = Microsoft.VisualBasic.Interaction.InputBox("Prompt here",
                            "Title here",
                            "Default data",
                            -1, -1);
if (inputBox == "")
    return;

you have to add a reference to the Microsoft.VisualBasic assembly

 

What's your thoughts on this?

*

Protected by WP Anti Spam