Connecting Tech Pros Worldwide Forums | Help | Site Map

how to pop up window form in windows service

jim656
Guest
 
Posts: n/a
#1: Jul 21 '05
windows service always running in the background. but in my case, when
running into a certain situation, I need to pop up a window form to notify
the user, how can I accomplish? I have tried to use Process.start, It really
run, but still keep in background.




Jorge L Matos
Guest
 
Posts: n/a
#2: Jul 21 '05

re: how to pop up window form in windows service


Jim,

Make sure you click the "Allow service to interact with desktop" checkbox on
the "Log On" tab of the properties page for the service.

"jim656" wrote:
[color=blue]
> windows service always running in the background. but in my case, when
> running into a certain situation, I need to pop up a window form to notify
> the user, how can I accomplish? I have tried to use Process.start, It really
> run, but still keep in background.
>
>
>[/color]
jim656
Guest
 
Posts: n/a
#3: Jul 21 '05

re: how to pop up window form in windows service


Jorge:

Problem still remains. I have tried the method you refered . Only
difference, this time, application's name disappear from task manager,
before, I could see the name of application in the process tab of task
manager. (I use Process.star to lanuch another application.)

could u give me more hint?


"Jorge L Matos" wrote:
[color=blue]
> Jim,
>
> Make sure you click the "Allow service to interact with desktop" checkbox on
> the "Log On" tab of the properties page for the service.
>
> "jim656" wrote:
>[color=green]
> > windows service always running in the background. but in my case, when
> > running into a certain situation, I need to pop up a window form to notify
> > the user, how can I accomplish? I have tried to use Process.start, It really
> > run, but still keep in background.
> >
> >
> >[/color][/color]
Sean Hederman
Guest
 
Posts: n/a
#4: Jul 21 '05

re: how to pop up window form in windows service


"jim656" <jim656@discussions.microsoft.com> wrote in message
news:0EC5BBEC-8E2C-44FF-AC3E-FA21F609AB8C@microsoft.com...[color=blue]
> Jorge:
>
> Problem still remains. I have tried the method you refered . Only
> difference, this time, application's name disappear from task manager,
> before, I could see the name of application in the process tab of task
> manager. (I use Process.star to lanuch another application.)[/color]

Ideally you should never popup a form or message box from a service. Rather
have a client application (perhaps residing in the notification bar) that
monitors the service and pops up the form.
[color=blue]
> could u give me more hint?
>
> "Jorge L Matos" wrote:
>[color=green]
>> Jim,
>>
>> Make sure you click the "Allow service to interact with desktop" checkbox
>> on
>> the "Log On" tab of the properties page for the service.
>>
>> "jim656" wrote:
>>[color=darkred]
>> > windows service always running in the background. but in my case, when
>> > running into a certain situation, I need to pop up a window form to
>> > notify
>> > the user, how can I accomplish? I have tried to use Process.start, It
>> > really
>> > run, but still keep in background.[/color][/color][/color]


Closed Thread