sourse code About list box...
:oI want to create a list box.I drag one list box and one command button whick is called "GO". For example inside the list box have 5 item,when i chose one of these and click GO.The form about the item wil show.Now i am facing the problem in writing the code when click the item to call out the related form. Can anybody help me here?Thank.Urgent.Thanks first. :)
Re: sourse code About list box...
Re: sourse code About list box...
What you mean "Moved from the CodeBank"?Have any website related what i want to recommend to me?Thanks.
Re: sourse code About list box...
You have to post in the Classic Visual Basic Forum.But you werent.You have posted in the codebank.Brief your requirements
Re: sourse code About list box...
Will a different form be called depending on the listbox selection, or will the same form be called, but have different settings based on the listbox selection?
Re: sourse code About list box...
For the different item i click,different form will call.So how I need to do?Thank.
Re: sourse code About list box...
What's in the list box? The name of the form to be called or something else?
Re: sourse code About list box...
Code:
Select Case List1.Text
Case "Listbox Item 1"
Form1.Show
Case "Listbox Item 2"
Form2.Show
Case "Listbox Item 3"
Form3.Show
Case "Listbox Item 4"
Form4.Show
Case "Listbox Item 4"
Form5.Show
Case Else
Msgbox "You must select something from the list."
End Select
Replace the text in the Case statements with what is in your listbox and the form names with the names of the forms you are using.
Re: sourse code About list box...
Re: sourse code About list box...
Inside the list box,i will put the component like screw,nut,bolts and machine screw.what you mean of replace the text in the Case statements?
Re: sourse code About list box...
Quote:
Originally Posted by yanlin
Inside the list box,i will put the component like screw,nut,bolts and machine screw.what you mean of replace the text in the Case statements?
Did you see my example?
I didn't know what was going to be in your listbox, so I made something up.
When you write that code, replace my text with yours.