Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-07-2006, 10:26 PM   #1
Baseband Member
 
danagol's Avatar
 
Join Date: Mar 2006
Posts: 67
Default Any visual basic 6 help?

Hi i have just got visual basic 6, and have created some simple things. however i want to know how i can make it so that when i click a button a file will open on my computer. not throught visual basic, just as if i were to mauallt open the file with the double click. any help is good many thanks dan
__________________

__________________
dell inspiron 1300, 15.4 inch screen, 60gig, 512mb ddr ram, and its all i need lol!
danc1990@hotmail.co.uk msn me, im always happy to share info and make new friends :)
danagol is offline   Reply With Quote
Old 12-09-2006, 12:45 AM   #2
Fully Optimized
 
troy's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 2,410
Default Re: Any visual basic 6 help?

you mean open the executable or .exe file? if you want to do that, go into the bin folder udner where your project is saved and then it should come up. for example: say your project is named "test" then you would go to the "test" folder wherever it's saved at and go to "test" in there and when you click it should say either "application" or "executable file" or something along those lines. Works for me so hopefully it will work for you.

Good luck!
__________________

__________________
Desktop: Dell Dimension E510, 2.5GB RAM, Intel P4 3.0GHZ, 250GB HDD, Windows Vista Premium. Might not be the best, but the old girl is still running good.
troy is offline   Reply With Quote
Old 12-09-2006, 09:51 PM   #3
Baseband Member
 
danagol's Avatar
 
Join Date: Mar 2006
Posts: 67
Default Re: Any visual basic 6 help?

What i want it to open is a text [.txt] file. ive searched and searched on google but all i can find is how to load it into an existing text box on the form. i just want it so when i hit the about button. the .txt file itself will open as if it were to be opened by you. however thanks for the above help, ill give that a go on some things and experiment with it
__________________
dell inspiron 1300, 15.4 inch screen, 60gig, 512mb ddr ram, and its all i need lol!
danc1990@hotmail.co.uk msn me, im always happy to share info and make new friends :)
danagol is offline   Reply With Quote
Old 02-09-2007, 11:28 PM   #4
In Runtime
 
Join Date: May 2005
Location: C
Posts: 401
Default Re: Any visual basic 6 help?

If your button is button1, then it would be like:

button1.click = shell("C:\windows\system32\calc.exe")

You can replace anything within the parentheses with the full path to a file. Hope this helps =)
Marshillboy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0