Start a program

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts Page 1 of 1
Contributors
User avatar
NeedHelp
Member
Member
Posts: 42
Joined: Fri Feb 19, 2010 3:57 pm

Start a program
NeedHelp
How can i make you start a program with a button click, for example:

Lets use Firefox as the example

You click 'Start' and it starts Firefox [from C://Programfiles/Firefox/fixefox.exe <-- just an example]
You click 'Search' and it will search for Firefox.exe and start it
start.png
-NeedHelp
You do not have the required permissions to view the files attached to this post.
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

Re: Start a program
GoodGuy17
Try this:
Code: Select all
Shell "C://Programfiles/Firefox/firefox.exe"
User avatar
NeedHelp
Member
Member
Posts: 42
Joined: Fri Feb 19, 2010 3:57 pm

Re: Start a program
NeedHelp
Can you make it so you write the file location in a textbox and when you close the program the texts still there.. Understand?
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

Re: Start a program
GoodGuy17
I think like this:
create a setting in the project properties named PG.
Now, in form_load:
Code: Select all
 textbox1.text = my.settings.PG
And, in button run click:
Code: Select all
 Shell (textbox1.text)
My.settings.PG = textbox1.text
my.settings.save
my.settings.refresh
Note it will only save the text if you clicked Run.
4 posts Page 1 of 1
Return to “Tutorial Requests”