Hi there,
can a service written using C# to open another application written using C# too ,


In other word I wrote a service which I need to open forms and do more , so I had a windows application to perform all what all I want, but I do not know how can I call it from the service !

I hope I made my self clear and described the problem well ,

please urgent help is needed
Thanks :)

Recommended Answers

All 5 Replies

Yes, in service start event write this line

System.Diagnostics.Process.Start(ExecutablePath);
System.Diagnostics.Process.Start(ExecutablePath);

thanks ,
you mean the path to the executable file of my application?

thanks a lot.

System.Diagnostics.Process.Start(ExecutablePath);

when I did it , I think that the process worked(from the task manager) but the form of the application,

my application has a form and functions which interact with the user but nothing has showed

Is your service setup to interact with the users desktop ?
If not, the program will launch and will show up in task manager under processes, but the user will not see it.

Is your service setup to interact with the users desktop ?

is it possible to set the service to interact with the user desktop from the code ( that the user does not need to go and change it from the service manager manually ?

thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.