-
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
-
...
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
-
1 Attachment(s)
-
this form is good but it does not do the job.
i tried it but it does not open my other drive
-
worx awesome for me...i took a look at the code and \/\/0\/\/! for a n00b that was a lil overwhelming! ;-)
-
so there is no one there to help with the program
-
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.