473,396 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

call another application from VB.NET

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

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

thanks
Nov 20 '05 #1
8 10577
In article <b0**************************@posting.google.com >, 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.

Nov 20 '05 #2
EXAMPLE:

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

"hristo" <hr********@yahoo.com> wrote in message
news:b0**************************@posting.google.c om...
heya,
is it possible to launch another application (such Excel, IE browser) from VB.NET
in Java, we can use Runtime.getRuntime().exec

thanks

Nov 20 '05 #3
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" <hr********@yahoo.com> wrote in message
news:b0**************************@posting.google.c om...
heya,
is it possible to launch another application (such Excel, IE browser) from VB.NET
in Java, we can use Runtime.getRuntime().exec

thanks

Nov 20 '05 #4
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.
Nov 20 '05 #5
EP
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
.

Nov 20 '05 #6
* hr********@yahoo.com (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>
Nov 20 '05 #7
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
Nov 20 '05 #8
* "Fergus Cooney" <fi******@tesco.net> scripsit:
with Don Senda (the Italian thoroughbred) a close second.


;-)))

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: azerty | last post by:
Hello I develop an application which must call a WebService on a server (develop with ASP.NET framework) If I call this application from XP client station, no problem occurs BUT if i call...
4
by: kcmagg | last post by:
Mornin, group. Long-time usenet lurker, 1st time poster to this group. If I am in the wrong ballpark, please point me in the right direction :-) I work in a call center and what we are looking...
4
by: wobbles | last post by:
Hi Everyone, I've spent hours investigating why my Async (one way) call wasn't invoking the method on my server. Basically, if I remove " Console.ReadLine() ", the method DOESN'T get invoked....
1
by: Abdalla Fawaz El-Hawary | last post by:
I have a solution includes 2 projects the 1st one is a class library project and the 2nd is windows application. Normally i can use the classes wich in the 1st project(DLL) after add refrence for...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
10
by: bienwell | last post by:
Hi, I have a question about file included in ASP.NET. I have a file that includes all the Sub functions (e.g FileFunct.vb). One of the functions in this file is : Sub TestFunct(ByVal...
3
by: =?Utf-8?B?Y2hlbmRyaWNrcw==?= | last post by:
I have a C# winforms application that makes periodic web service calls in background thread to my web service server. These calls work fine almost all the time but on rare occassions the web...
6
by: JDeats | last post by:
I'm in a situation where it's difficult to get on-site and troubleshoot, so I'm looking for scenarios from those experienced on what might be causing this problem. I have a .NET 2.0 WinForms...
2
by: rahulsengar | last post by:
Hey how can i lauch my application on incoming call notification in windows mobile . hey can u please help me how to launch my application automatically when an incoming call occurs. Is there any...
0
by: rahulsengar | last post by:
Hey how can i lauch my application on incoming call notification in windows mobile . hey can u please help me how to launch my application automatically when an incoming call occurs. Is there any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.