|
-
Oct 8th, 2002, 09:17 AM
#1
Thread Starter
New Member
Help with VB6
i wanted to make a little program to open and close my DVD drive, i have done that but then i wanted to open and close my CDRW drive so i put a COMBO box.
but i dont know what the coding would be to link the 2 buttons to the combo box so it can open and close the drives that i pick.
please help me
THE ROAD TO SUCCESS IS ALWAYS UNDER CONSTRUCTION
-
Oct 8th, 2002, 10:51 AM
#2
Addicted Member
...
Assuming that you have a button, "Command1" and a combo "Combo1" on your form, this should do it:
In button:
Code:
Select Case Combo1.Text
Case Is = "Item1"
MsgBox ("Item1 is selected")
Case Is = "Item2"
MsgBox ("Item2 is selected")
Case Else
MsgBox ("No items selected")
End Select
Jez
-
Oct 9th, 2002, 05:32 AM
#3
-
Oct 9th, 2002, 07:17 AM
#4
Thread Starter
New Member
this form is good but it does not do the job.
i tried it but it does not open my other drive
-
Oct 17th, 2002, 08:05 PM
#5
Junior Member
worx awesome for me...i took a look at the code and \/\/0\/\/! for a n00b that was a lil overwhelming! ;-)
-
Oct 18th, 2002, 11:12 AM
#6
Thread Starter
New Member
so there is no one there to help with the program
-
Oct 21st, 2002, 02:37 AM
#7
I've tested this on a few PC's and didn't have any problems, there is another API call to use to open the drive I think, but it'll probably give youthe same result as I think this is possibly down to your particular drive.
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
|