Multiple Prompts in an InputBox

tk.unlimited

Active member
Joined
Apr 2, 2005
Messages
27
Programming Experience
1-3
Hey All :D
I require help with a problem i have come across.. I want to be able to allow the user to input data in several input boxes but at the same time want the Input box msg to prompt as so:

Enter Fruit Type #1
Enter Fruit Type #2
Enter Fuit Type #3
etc etc etc

ALSO as VB is case sensitive. I have a problem with user input... atm the input by the user is listed in a listbox.. However as user input is required... if it is Spelt APPLE in the listbox but the user inputs apple.. then i bump into a problem :(
If anyone could help it would be much appreciated...:)

Tk
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
i forget how to call the inputbox (i never use it, i design my own forms instead) but for the case sensitive you can use the ToUpper such as:
strMyString.ToUpper = lstItems.Items("APPLE") or something like that

this way the user can type it in like: apple, Apple, APple and the ToUpper function will always compare it as APPLE for ya
 

genu

Well-known member
Joined
Jun 9, 2005
Messages
94
Programming Experience
1-3
i need to find how to have more input boxes in the InputBox function...thnks
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
to my knowledge there isnt a way to add more textbox's to a single input box

but you can make you're own form that has all the textbox's and stuff you need on it

and when you go to show that form instead of using the .Show() method to show it, use .ShowDialog() instead as this will force that form/window to have focus regardless just like what the inputbox and messagebox's do
 

kulrom

Well-known member
Joined
May 10, 2005
Messages
2,854
Location
Republic of Macedonia
Programming Experience
10+
genu said:
i need to find how to have more input boxes in the InputBox function...thnks
I just attached an example for the same ... take a look at this thread:

http://www.vbdotnetforums.com/showthread.php?p=10059#post10059

Btw, if you have predefined values for the fruits why you prompt user to type the same at all? I would add either Combo or ListView so user will need only select certain item and that's it.

Cheers ;)
 
Top Bottom