Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening programs

Status
Not open for further replies.

Stegmite

Programmer
Aug 18, 2004
36
US
Is it possible to open programs via Visual Studio? I would like to have a button that opens the .mdb file stored on the database.
 
Code:
System.Diagnostics.Process.Start("completefilepath")

this will open the .mdb with the associated program. And I guess that would be Access.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Here is my code
Code:
Private Sub cmdAdmin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAdmin.Click
        System.Diagnostics.Process.Start("C:\Program Files\DataBase\db\database.mdb")
    End Sub

When I click the button, the slider on the status bar stops half-way...nothing opens.
 
Check your process list -- it might not be visible.

The progress bar stops because it's waiting for the other program to end. If you want the progress bar to continue you'll need to put your process.start code in it's own thread (do a search, it's been covered here before).

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top