Shell Function in .NET

L

Lenny

Hello,

What's the equilevant of VB6 shell funtion in (
Shell(pathname[,windowstyle]) ) .NET framework.

Thanks
 
H

Herfried K. Wagner

Hello,

Lenny said:
What's the equilevant of VB6 shell funtion in (
Shell(pathname[,windowstyle]) ) .NET framework.

System.Diagnostics.Process.Start

Regards,
Herfried K. Wagner
 
K

Kumar Gaurav Khanna [.NET MVP]

Hi!

System.Diagnostics namespace has the Process class. Use the Start
method of the same. It has got couple of overloads that might be of
interest to you.

For example:

Process.Start("http://www.wintoolzone.com/");

shall invoke the default system browser and make it navigate to
http://www.wintoolzone.com/


Regards,
Gaurav Khanna
---------------
Microsoft MVP - .NET
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
OpSupport - Spelunking Rotor
http://opsupport.sscli.net/
 

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

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top