i want to build the program like this: when i click button , it will open the file with the application i want. for example, click the button , the file open with notepad.
who know how to do it?
please tell me ! thank you!!!
how to run external application by using visual basic
Started by renoald, Sep 16 2008 08:09 AM
6 replies to this topic
#1
Posted 16 September 2008 - 08:09 AM
|
|
|
#2
Posted 17 September 2008 - 03:50 AM
Hi,
If you are asking about a VB function then you can do so with the Shell function.
For example
Shell "c:\windows\notepad.exe"
You can also use API function ShellExecute. You need to go through the API documentation for parameter details
If you are asking about a VB function then you can do so with the Shell function.
For example
Shell "c:\windows\notepad.exe"
You can also use API function ShellExecute. You need to go through the API documentation for parameter details
#3
Posted 18 September 2008 - 04:46 PM
Thank for your help ! your suggestion is very helpful to me!
#4
Guest_Jordan_*
Posted 23 September 2008 - 11:38 AM
Guest_Jordan_*
What does your final code look like?
#5
Posted 23 September 2008 - 10:53 PM
i still in doing it ! i will post the code after i finish it !
#6
Posted 26 September 2008 - 06:28 PM
Hi!!
Thanks for your Question...
I'm leaning Programmer....
Thanks for your Question...
I'm leaning Programmer....
#7
Posted 29 September 2008 - 05:41 AM
This is the code i write for this application:
System.Diagnostics.Process.Start("Notepad", "C:\Project\" & c_File)
Edited by Jaan, 29 September 2008 - 11:46 AM.
Please use code tags when you're posting your codes!


Sign In
Create Account

Back to top









