Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hey folks,

 

what's the best way to run another application within a VB.NET Windows app?

 

i need to be able to generate barcodes in my VB.NET application and i have this shareware program that already does that. so i figured i could just run this little program within my application to solve the problem. this program is nothing but an .exe file. so what i need is a way to run an .exe file in VB.NET. now, i know i can do that using the Shell command, but the reason why i am posting this is because i wanted to get some opinions on what would be the most professional and elegant way of doing it.

 

Any advice?

 

thanks all.

  • *Experts*
Posted

Use the Process class from System.Diagnotics namespace. It has a Start method which will start up the program for you.

Dim p As Process = Process.Start("exe filename")

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...