Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 04-02-2004, 11:09 AM   #1
Member (8 bit)
 
mikey_dude's Avatar
 
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.
mikey_dude is offline   Reply With Quote
Old 04-03-2004, 01:00 AM   #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.
mattg2k4 is offline   Reply With Quote
Old 04-03-2004, 02:57 AM   #3
Member (8 bit)
 
mikey_dude's Avatar
 
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
mikey_dude is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:51 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2