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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
AlanRank #669 · 3.6K reputationPosted Nov 18, 2008, 7:45 AM EST
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.
AlanRank #669 · 3.6K reputationPosted Dec 1, 2008, 11:35 AM EST
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.
Rajendra Deopura139 reputationPosted Dec 1, 2008, 5:36 PM EST
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