Hi,
can someone help me with this. How can I start an application from application. (I have tried with Process.Start but nothing)
Hi,
can someone help me with this. How can I start an application from application. (I have tried with Process.Start but nothing)
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AlanPosted Nov 18, 2008, 12:45 PM
As you'll see from the link below, only some overloads of the Process.Start method are supported by the .NET Compact Framework v2.0 or later, namely those displayed with a 'handheld' image:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx
I'd try Process.Start("someapp.exe", "");
assuming no command line arguments are needed.
Rajendra DeopuraPosted Dec 1, 2008, 10:36 PM
Create a Windows App. and place a button control on it. Write The following code in button click :
Imports System.Diagnostics
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Process.Start("notepad.exe", "Hello World")
End Sub
End Class
Tips.
The first parameter in Process.Start starts the notepad.app where as the second parameter denote the title that appears in title bar.
Thanks
Happy Coding
AlanPosted Dec 1, 2008, 4:35 PM
With reference to your e-mail, I think you always need to specify the root ("\") when dealing with a file path in the Windows CE file system.
So, the previous example would be:
Process.Start("\\someapp.exe", "");
remembering that you need to 'escape' a backslash with another one in a normal C# string.