|
-
Mar 19th, 2007, 05:27 AM
#1
Thread Starter
New Member
sourse code About list box...
I 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.
-
Mar 19th, 2007, 06:02 AM
#2
Re: sourse code About list box...
-
Mar 19th, 2007, 07:57 AM
#3
Thread Starter
New Member
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.
-
Mar 19th, 2007, 08:10 AM
#4
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
Please mark you thread resolved using the Thread Tools as shown
-
Mar 19th, 2007, 08:19 AM
#5
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?
-
Mar 19th, 2007, 08:58 AM
#6
Thread Starter
New Member
Re: sourse code About list box...
For the different item i click,different form will call.So how I need to do?Thank.
-
Mar 19th, 2007, 09:04 AM
#7
Re: sourse code About list box...
What's in the list box? The name of the form to be called or something else?
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Mar 19th, 2007, 09:11 AM
#8
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.
-
Mar 19th, 2007, 09:18 AM
#9
Re: sourse code About list box...
-
Mar 19th, 2007, 09:36 AM
#10
Thread Starter
New Member
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?
-
Mar 19th, 2007, 09:47 AM
#11
Re: sourse code About list box...
 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|