priya_pbk
asked on
How to open a vbp file from visual basic application
This must be simple, but i dont seem to get it right?
I have an application which has to open the source code of any application(ie will open a vbp file).
I have a TextBox (say text1) on the form which shows the path of the vbp project.
for eg:
Text1="\\rootpc\D\project\ sourcecode \myproject .vbp"
Now at the click of a CommandButton, I write the following code:
Private Sub Command1_Click()
'it gives me an error at this call procedure, saying "Invalid procedure call or argument"
Call Shell(Text1, vbMaximizedFocus)
End Sub
But if i open an exe it works fine. I know I am missing something, anybody who can tell me what?
Thanks
-Priya
I have an application which has to open the source code of any application(ie will open a vbp file).
I have a TextBox (say text1) on the form which shows the path of the vbp project.
for eg:
Text1="\\rootpc\D\project\
Now at the click of a CommandButton, I write the following code:
Private Sub Command1_Click()
'it gives me an error at this call procedure, saying "Invalid procedure call or argument"
Call Shell(Text1, vbMaximizedFocus)
End Sub
But if i open an exe it works fine. I know I am missing something, anybody who can tell me what?
Thanks
-Priya
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hey i dont' understand, I have accepted your answer(angelIII) twice by clicking the Accept comment as answer button, but it doesn't seem to work.
Any moderators who can help, I tried Reloading the Question, no luck!!
-priya
Any moderators who can help, I tried Reloading the Question, no luck!!
-priya
ASKER
oops!!forgot to click the grade -priya
Accept worked...
Shell is a wrapper function of VB for the API shell, and by thus is faster. Of course, the API has more parameters for flexibility, but is not as simple to use as VB functions...
CHeers
Shell is a wrapper function of VB for the API shell, and by thus is faster. Of course, the API has more parameters for flexibility, but is not as simple to use as VB functions...
CHeers
ASKER
BTW, what's the difference b/w Shell and ShellExecute apart from the fact that the later is faster?
-priya