H
Hans Kamp
How do I use InputBox?
private void addButton_Click(object sender, System.EventArgs e)
{
string newName;
newName = InputBox("t1", "t2", "t3");
namesListBox.Items.Add(newName);
}
namesListBox is a ListBox in the main window of my application.
This code generates an error:
[C# Error] WinForm.cs(103): The name InputBox doesn't exist in the class or
namespace Test.WinForm
Hans Kamp.
private void addButton_Click(object sender, System.EventArgs e)
{
string newName;
newName = InputBox("t1", "t2", "t3");
namesListBox.Items.Add(newName);
}
namesListBox is a ListBox in the main window of my application.
This code generates an error:
[C# Error] WinForm.cs(103): The name InputBox doesn't exist in the class or
namespace Test.WinForm
Hans Kamp.