Add a reference to Microsoft.VisualBasic
, InputBox
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
Related Contents:
- How to use multiple fonts for each combobox item in WPF?
- How to enable assembly bind failure logging (Fusion) in .NET
- How to get ALL child controls of a Windows Forms form of a specific type (Button/Textbox)?
- How to write Unicode characters to the console?
- Why is there a default instance of every form in VB.Net but not in C#?
- Why is Dictionary preferred over Hashtable in C#?
- How can I read a file even when getting an “in use by another process” exception?
- Why is it bad to use an iteration variable in a lambda expression
- VB.NET equivalent for C# ‘dynamic’ with Option Strict On
- How to solve COM Exception Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))?
- Best /Fastest way to read an Excel Sheet into a DataTable?
- How to fix a opacity bug with DrawToBitmap on WebBrowser Control?
- Capture screenshot Including Semitransparent windows in .NET
- How do I determine a mapped drive’s actual path?
- How does inheritance work for Attributes?
- How do I kill a process using Vb.NET or C#?
- Mixing C# & VB In The Same Project
- Difference with Parameters.Add and Parameters.AddWithValue
- How to find overlapping controls that I added to form?
- How to execute an SSIS package from .NET?
- Check if a string contains an element from a list (of strings)
- Should I store my images in the database or folders? [duplicate]
- How do I get a human-readable file size in bytes abbreviation using .NET?
- Get File Icon used by Shell
- How to flatten nested objects with linq expression
- Is String.Format as efficient as StringBuilder
- How do I get my C# program to sleep for 50 milliseconds?
- Equivalence of “With…End With” in C#? [duplicate]
- What is a predicate in c#? [duplicate]
- What are the benefits of resource(.resx) files?
- Start new process, without being a child of the spawning process
- How is the boxing/unboxing behavior of Nullable possible?
- How do I filter all HTML tags except a certain whitelist?
- GC.Collect()
- Binding property to control in Winforms
- User Activity Logging, Telemetry (and Variables in Global Exception Handlers)
- Get the final generated html source using c# or vb.net
- .Net Data structures: ArrayList, List, HashTable, Dictionary, SortedList, SortedDictionary — Speed, memory, and when to use each? [closed]
- return only Digits 0-9 from a String
- Colour Individual Items in a winforms ComboBox?
- Sorting an array of folder names like Windows Explorer (Numerically and Alphabetically) – VB.NET
- The remote server returned an unexpected response: (413) Request Entity Too Large.
- center MessageBox in parent form [duplicate]
- How do I make a form modal in Windows Forms?
- What are the most important functional differences between C# and VB.NET?
- Conversion tool comparisons for visual basic 6.0 [closed]
- How do you disable an item in listview control in .net 3.5
- Exposing Property as Variant in .NET for Interop
- Marking A Class Static in VB.NET
- Detecting remote desktop connection