Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Q & A in VB

Status
Not open for further replies.

phonebob

Programmer
Jul 16, 2001
4
US
How do I set a method for vb to be interactive with the user? Example: I have a program written to run in DOS that asks the user to enter information ie. what port do yu want to use? and it waits for the answer com1 or com2. Then it goes to the next question ie. what baud rate do you want? waits for an answer. this continues until it has gathered the information to complete the program by using what it has been given. Is there a method to do this in VB? Any and all help is appreciated.
Thanks in advance.
 
A couple way to do this:
1. U can use Inputbox
Dim s
s = InputBox("Your question here", "Your title", "Default answer")

2. Make a fill form by putting text box/combo box and a command button 'OK' in a form. Validate all users input when they click on 'OK' button

Good luck :)
 

This sounds a lot like a "wizard" style interface. VB makes it easy to create one of this. Next time you start VB, create a new project of type "VB Wizard Manager". You get a new form that's your wizard, plus a small dialog that allows you to add steps to your wizard.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top