Click here to Skip to main content
15,917,568 members
Home / Discussions / C#
   

C#

 
QuestionThread.Abort() (Should I use try..catch?) Pin
Shy Agam18-May-06 1:02
Shy Agam18-May-06 1:02 
AnswerRe: Thread.Abort() (Should I use try..catch?) Pin
Robert Rohde18-May-06 1:34
Robert Rohde18-May-06 1:34 
AnswerRe: Thread.Abort() (Should I use try..catch?) Pin
Guffa18-May-06 1:36
Guffa18-May-06 1:36 
QuestionHelp needed in Reference Parameters Pin
Ashraj198218-May-06 0:42
Ashraj198218-May-06 0:42 
QuestionLaunch an application in Win CE Pin
taucher_7218-May-06 0:32
taucher_7218-May-06 0:32 
AnswerRe: Launch an application in Win CE Pin
rah_sin18-May-06 0:37
professionalrah_sin18-May-06 0:37 
GeneralRe: Launch an application in Win CE Pin
taucher_7218-May-06 1:10
taucher_7218-May-06 1:10 
AnswerRe: Launch an application in Win CE Pin
GDavy18-May-06 3:37
GDavy18-May-06 3:37 
You can use the native calls ShellExecute or CreateProcess by using dllimport
In the class you wish to start another app use the following namespace

using System.Runtime.InteropServices;

then define from which dll to get the function and the function name with dllimport and on the immediately next line define the function with all the parameters
<br />
[DLLImport("Coredll.dll", EntryPoint="TheFunctin")]<br />
public static extern void TheFunction(... all your params...);<br />


In the above example replace the TheFunctin with the actuall function name you wish to import (in your case CreateProcess or ShellExecute, and replace the ...all your params... part with correct parameters -> depends on which function you^ll use...

I think CreateProcess is in the Coredll.dll lib and ShellExecute is in the CeShell.dll, but you`ll have to doublecheck that.

Friendly Regards,
Davy
GeneralRe: Launch an application in Win CE Pin
taucher_7218-May-06 22:04
taucher_7218-May-06 22:04 
QuestionDatabinding a string ignores DBNulls Pin
Chals17-May-06 23:59
Chals17-May-06 23:59 
QuestionHide a Form when X-button pressed Pin
anderslundsgard17-May-06 23:54
anderslundsgard17-May-06 23:54 
AnswerRe: Hide a Form when X-button pressed Pin
Colin Angus Mackay17-May-06 23:59
Colin Angus Mackay17-May-06 23:59 
GeneralRe: Hide a Form when X-button pressed Pin
anderslundsgard18-May-06 1:06
anderslundsgard18-May-06 1:06 
QuestionMeasuring Query execution time Pin
tibiz17-May-06 23:51
tibiz17-May-06 23:51 
AnswerRe: Measuring Query execution time Pin
Rei Miyasaka18-May-06 7:19
Rei Miyasaka18-May-06 7:19 
QuestionHighlight an item in a listview Pin
NewbieDude17-May-06 23:35
NewbieDude17-May-06 23:35 
AnswerRe: Highlight an item in a listview Pin
rah_sin17-May-06 23:46
professionalrah_sin17-May-06 23:46 
AnswerRe: Highlight an item in a listview Pin
Leyu18-May-06 8:23
Leyu18-May-06 8:23 
QuestionFolderBrowserDialog Pin
Talktorajeev17-May-06 23:31
Talktorajeev17-May-06 23:31 
AnswerRe: FolderBrowserDialog Pin
alexey N18-May-06 0:41
alexey N18-May-06 0:41 
QuestionFolks,FolderBrowserDialog Pin
Talktorajeev17-May-06 23:29
Talktorajeev17-May-06 23:29 
QuestionProblem in Data base Pin
Ashraj198217-May-06 23:23
Ashraj198217-May-06 23:23 
AnswerRe: Problem in Data base Pin
Colin Angus Mackay17-May-06 23:38
Colin Angus Mackay17-May-06 23:38 
AnswerRe: How to retrieve string value from resource file into text control? Pin
stancrm18-May-06 2:39
stancrm18-May-06 2:39 
GeneralRe: How to retrieve string value from resource file into text control? Pin
WCup18-May-06 16:30
WCup18-May-06 16:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.