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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

vb.net 1
vb.net forms connected to controls 1
C# to VB.NET 6
vb.net classmanager 1
Launch IE From Desktop App? 3
VB.NET buttons 7
asp/vb.net over vb.net app 7
vb.net statement/reference list 2

Back
Top