Archived

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

Malachi

VB prob again

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
Malachi take some time to look into it and try to solve your problems. Dont ask tons of questions like that, you are asking us to practically write your whole code.

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
No....your not funny. But thanks anyway, yes we do have VB teachers at my college, I have no idea how my college managed to get hold of them as its so rubbish.

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