|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
Join Date: Apr 2002
Location: Ipswich, UK
Posts: 197
|
VB form linking
Hi there,
I'm attempting to make a small program which consists of three or four forms in Visual Basic 6. I would like it to work pretty much like a hyperlink does in html. How can I connect the forms together as in when a button or image is pressed, it takes the user to a different form? I'm sure its easy enough if you know how! Also, how can I make programs install from any CD drive using the shell command? For example, I have a form set to install a program from d:\apps\program.exe but how can I make it install from any drive not just d:\? Thanks for your time.
|
|
|
|
|
|
#2 |
|
Member (10 bit)
Join Date: Jul 2002
Location: University of California, Santa Barbara
Posts: 800
|
I don't know about the first question but I have some ideas on the second one.
There is bound to be an API to get the drive letters for the CD drive, although I don't know it. You could use that to search all CD drives for the program in question. You could use an autorun function on the CD to take the appropriate action when it's put into the CD drive. If you don't know how to do this, just find a CD that starts an application when you put it in and check out autorun.ini in the root folder. I'm not sure if this will work in your application, but the user could enter the appropriate drive letter. |
|
|
|
|
|
#3 |
|
Member (8 bit)
Join Date: Apr 2002
Location: Ipswich, UK
Posts: 197
|
Thanks for your reply.
I figured out how to link forms in VB, I'm just stuck on the cd drive bit. I'll try what you said but I did see somewhere a load of code which can find which drive the CD is in and run from it. Not sure how to do it though! cheers
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|