PC Review


Reply
Thread Tools Rate Thread

call another application from VB.NET

 
 
hristo
Guest
Posts: n/a
 
      9th Oct 2003
heya,
is it possible to launch another application (such Excel, IE browser) from VB.NET

in Java, we can use Runtime.getRuntime().exec

thanks
 
Reply With Quote
 
 
 
 
Tom Shelton
Guest
Posts: n/a
 
      9th Oct 2003
In article <(E-Mail Removed)>, hristo wrote:
> heya,
> is it possible to launch another application (such Excel, IE browser) from VB.NET
>
> in Java, we can use Runtime.getRuntime().exec
>
> thanks


In VB.NET you can either use the built in Shell command - or if you need
more control over the process you can use the System.Diagnostics.Process
class.

 
Reply With Quote
 
I_AM_DON_AND_YOU?
Guest
Posts: n/a
 
      9th Oct 2003
EXAMPLE:

dim str as string
str = "C:\WINNT\NOTEPAD.EXE"
x = shell(str, Appwinstyle.maximizedfocus)

"hristo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> heya,
> is it possible to launch another application (such Excel, IE browser) from

VB.NET
>
> in Java, we can use Runtime.getRuntime().exec
>
> thanks



 
Reply With Quote
 
Mattias Sjögren
Guest
Posts: n/a
 
      9th Oct 2003

>is it possible to launch another application (such Excel, IE browser) from VB.NET


System.Diagnostics.Process.Start()



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
 
Reply With Quote
 
Robert Jacobson
Guest
Posts: n/a
 
      9th Oct 2003
For just opening an application, you can use
System.Diagnostics.Process.Start().

Microsoft Office applications (Excel, Word, etc.) expose an object model
that gives you more detailed control over them. E.g., you can use VB or C#
to start Excel, open a particular workbook, do something with the workbook,
and then shut Excel down.

http://msdn.microsoft.com/vbasic/usi...e/default.aspx


"hristo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> heya,
> is it possible to launch another application (such Excel, IE browser) from

VB.NET
>
> in Java, we can use Runtime.getRuntime().exec
>
> thanks



 
Reply With Quote
 
EP
Guest
Posts: n/a
 
      9th Oct 2003
If your trying to automate Excel or word you can add a
reference of the object to the project. Then declare a
variable of that type. You will then have exposure to all
the properties.

Dim exExcel = new Excel.Application

You will then have access to all the properties.
exExcel.??????

>-----Original Message-----
>heya,
>is it possible to launch another application (such Excel,

IE browser) from VB.NET
>
>in Java, we can use Runtime.getRuntime().exec
>
>thanks
>.
>

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      9th Oct 2003
* (E-Mail Removed) (hristo) scripsit:
> is it possible to launch another application (such Excel, IE browser) from VB.NET


You can use 'Shell' or 'System.Diagnostics.Process.Start'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
Fergus Cooney
Guest
Posts: n/a
 
      10th Oct 2003
Hi All

Wow, what a race!! And in the lead by a short nose - Tom Shelton first
past the post, with Don Senda (the Italian thoroughbred) a close second.

;-))

Regards,
Fergus


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      10th Oct 2003
* "Fergus Cooney" <filter-(E-Mail Removed)> scripsit:
> with Don Senda (the Italian thoroughbred) a close second.


;-)))

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call/execute window application from web application ? nurit Microsoft ASP .NET 0 27th Mar 2006 04:49 PM
An outgoing call cannot be made since the application is dispatching an input-synchronous call Sagaert Johan Microsoft C# .NET 4 6th Apr 2005 12:12 AM
Please help - How to call functions that exists in the main application. The call should be initiated from one of the components. Anand Ganesh Microsoft C# .NET 5 16th Oct 2004 01:53 AM
Re: Please help - How to call functions that exists in the main application. The call should be initiated from one of the components. Baavgai Microsoft C# .NET 0 4th Sep 2004 05:54 AM
How to call a VB6 application from Windows Service Application =?Utf-8?B?REg=?= Microsoft Dot NET 3 5th May 2004 05:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 PM.