Click here to Skip to main content
15,910,234 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sorting with Xsl Pin
Heath Stewart19-May-04 5:02
protectorHeath Stewart19-May-04 5:02 
GeneralRe: Sorting with Xsl Pin
bertcox19-May-04 5:07
bertcox19-May-04 5:07 
Generalregd treeView control Pin
karteek19-May-04 2:50
karteek19-May-04 2:50 
GeneralRe: regd treeView control Pin
Dave Kreskowiak19-May-04 3:04
mveDave Kreskowiak19-May-04 3:04 
GeneralRe: regd treeView control Pin
karteek19-May-04 3:06
karteek19-May-04 3:06 
GeneralRe: regd treeView control Pin
Dave Kreskowiak19-May-04 3:11
mveDave Kreskowiak19-May-04 3:11 
GeneralRe: regd treeView control Pin
karteek19-May-04 3:29
karteek19-May-04 3:29 
GeneralStarting a new process from a windows service. Pin
Klok19-May-04 1:28
Klok19-May-04 1:28 
Hi Im creating a service application which has the job of watching if my main application is running.
If my application is not running, I wish to start it, but this is where my problems ocures.

It seems that my service application correctly sees that my program is not running, but when it starts the program it just never shows up.
If i take a look in my process list, the program has been started but the GUI (a simple form) is just never shown.

I have a feeling that its because the process is also started in the context of the windows service, and therefor does not support a GUI.
If i run my code in a standard windows app, it works just fine.

Has anyone got any sugestions?

Heres the code I use to check and start up my application:

Process[] processes = Process.GetProcessesByName("WindowsApplication4");
if(processes.Length != 1)
{
Process tallyMachine = new Process();
tallyMachine.StartInfo.FileName = "C:\\WindowsApplication4\\WindowsApplication4.exe";
tallyMachine.StartInfo.WorkingDirectory = "C:\\WindowsApplication4";
tallyMachine.Start();
}


Any help would be greatly appreciated Wink | ;)
Regards
Janus Klok
GeneralRe: Starting a new process from a windows service. Pin
Aryadip19-May-04 2:07
Aryadip19-May-04 2:07 
GeneralRe: Starting a new process from a windows service. Pin
Klok19-May-04 4:16
Klok19-May-04 4:16 
GeneralRe: Starting a new process from a windows service. Pin
Dave Kreskowiak19-May-04 2:23
mveDave Kreskowiak19-May-04 2:23 
GeneralRe: Starting a new process from a windows service. Pin
Klok19-May-04 4:14
Klok19-May-04 4:14 
GeneralRe: Starting a new process from a windows service. Pin
Heath Stewart19-May-04 4:24
protectorHeath Stewart19-May-04 4:24 
QuestionHow to retrieve a graphics object from an image object???? Pin
mmxguy19-May-04 1:13
mmxguy19-May-04 1:13 
AnswerMessage Removed Pin
19-May-04 1:25
wibblewibblewibble19-May-04 1:25 
GeneralRe: How to retrieve a graphics object from an image object???? Pin
mmxguy19-May-04 17:57
mmxguy19-May-04 17:57 
Questioncombine bitmaps ?? Pin
azusakt19-May-04 0:46
azusakt19-May-04 0:46 
AnswerMessage Removed Pin
19-May-04 1:05
wibblewibblewibble19-May-04 1:05 
GeneralRe: combine bitmaps ?? Pin
azusakt19-May-04 15:20
azusakt19-May-04 15:20 
AnswerRe: combine bitmaps ?? Pin
pedery19-May-04 6:24
pedery19-May-04 6:24 
Generalreturning a datareader Pin
_Searcher_19-May-04 0:39
_Searcher_19-May-04 0:39 
GeneralRe: returning a datareader Pin
Colin Angus Mackay19-May-04 0:47
Colin Angus Mackay19-May-04 0:47 
GeneralRe: returning a datareader Pin
Aryadip19-May-04 0:54
Aryadip19-May-04 0:54 
GeneralRe: returning a datareader Pin
_Searcher_19-May-04 4:19
_Searcher_19-May-04 4:19 
GeneralHorizontal scroll not working with OwnerDraw (List box) Pin
pushpi19-May-04 0:35
pushpi19-May-04 0:35 

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.