What is the C# version of VB.net’s InputDialog?

Add a reference to Microsoft.VisualBasicInputBox is in the Microsoft.VisualBasic.Interaction namespace:

using Microsoft.VisualBasic;
string input = Interaction.InputBox("Prompt", "Title", "Default", x_coordinate, y_coordinate);

Only the first argument for prompt is mandatory

Leave a Comment