Hi Jude
I did some searching myself and found that it realy is
difficult to find a function that works like
VB.Net's Shell.
However being a VC++ guy I know a function a API
called ShellExecute that I have used a lot.
I've used this api in C# as well its pretty simple
here is the declaration code
Code:
[DllImport("Shell32.dll",CharSet=CharSet.Auto)]
public static extern IntPtr ShellExecute(
IntPtr hwnd,
string lpVerb,
string lpFile,
string lpParameters,
string lpDirectory,
int nShowCmd );
and this is how you use it
Code:
ShellExecute(this.Handle,"open","notepad","","",3);
I've used 3 as the value for the last perameter.
which maps to SW_SHOWMAXIMIZED;
you can find the values to use for the last
perameter in WINUSER.H located in
whereeveryouhaveintalledit\Microsoft Visual Studio\VC98\Include
The search for the Shell counterpart is still on.
Write back if there is anything else you wanna ask.
Ankur Verma
.Net and C++ Specialist
Wiley Tech Support