Input box

  • Thread starter Thread starter Wasim Akram
  • Start date Start date
What you might want is System.Windows.Forms.TextBox. You didn't mention what
type of application you are writing.

Thomas P. Skinner [MVP]
 
InputBox I believe is a VB like function that creates a modal dialog allowing
input
and isn't necessarily just a TextBox.

The Microsoft.VisualBasic.Interaction.InputBox is always available, though I
don't
really recommend going there for such a simple dialog. Instead create a standard
Form and toss your items into place. The amount of designer time and code you'll
write is about 10-15 minutes worth your time and is fully reusable, without
having
to include the VB extension libraries.
 
Interesting. I tried using this from a C# program and it works fine. I added
a reference to the VB runtime DLL and made a call similar to:

Microsoft.VisualBasic.Interaction.InputBox.(....);
and the input box popped up. I fully agree that C# programmers should not go
there.

Thomas P. Skinner [MVP]
 
Back
Top