Open a file/New to VB.net

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

I am new to VB.net and I would like to be able to open an application by
pressing a button. I would like to open an Access file on my desktop and a
notepad file on my desktop. What is the syntax to be able to complete a
task such as this.

Thanks in advance for your help.

Richard
 
You could use ShellEx within the API.. I never have worked with this that
much.. but I've done it. Maybe .NET has a better way. For example, if its
another .NET program, you can check the Assembly cache, create an assembly
based of that and run.
 
Hello,

Richard said:
I am new to VB.net and I would like to be able to open an application by
pressing a button. I would like to open an Access file on my desktop and a
notepad file on my desktop. What is the syntax to be able to complete a
task such as this.

\\\
Imports System.Diagnostics
..
..
..
Process.Start("C:\bla.txt")
///

HTH,
Herfried K. Wagner
 
Hello,

CJ Taylor said:
You could use ShellEx within the API.. I never have worked
with this that much.. but I've done it. Maybe .NET has a
better way. For example, if its another .NET program, you
can check the Assembly cache, create an assembly
based of that and run.

Have a look at the Process class...

HTH,
Herfried K. Wagner
 
Back
Top