Archived

This topic is now archived and is closed to further replies.

VB prob again

This topic is 5870 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi again, Im half way creating my menu through VB but I came across an other problem. I have created a text box and I want it, so if the user clicks on the text box it will open the folder it has linked to in Windows Explorer. Does anyone know how to do ths?

Share this post


Link to post
Share on other sites
From what I understand of your problem description you want to run explorer, and specify which folder to open?

Try the following:

Call Shell("explorer /c /e," & strFolder, vbNormal)

Remove the /c argument if you want the folder pane on the left side of Explorer.

Share this post


Link to post
Share on other sites
Hey, thanks.
1.how can I make my form change the screen resolution? As I dont want the user to change it manually everytime they want to load my menu.
2.Im try to load a movie clip using this command,
Shell "C:\menu\clips\1.mpg"
But I get the error "Invalid procedure call or argument (Error 5)" How can I get this to work, do I have to add an Windows Media Player component?



Edited by - malachi on November 15, 2001 11:31:27 AM

Share this post


Link to post
Share on other sites
I have,Ive spent 5 days writing this menu. I came arcoss loads of probs and get them sorted, these are the ones which are bothering me. I was ment to get this done by Friday. Even the VB teachers at my college are clueless.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
They have VB teachers at college?!?!
Ok, seriously, do this:
Type "ShellExecute" in your code, and then hit the "F1" key (it is a little square key towards the upper left of your keyboard, and it says "F1" on it).

Share this post


Link to post
Share on other sites
In VB there is an add-in called "API Viewer" that is essentially a user-interface for retrieving the majority of the API calls, constants and structures used in Windows programming. Start the add-in and load the win32api.txt file. In the declarations, look for ShellExecute, copy and paste. Simple!

For information about the API just look it up on the Microsoft MSDN.


Edited by - tph on November 16, 2001 11:26:49 AM

Share this post


Link to post
Share on other sites