Windows Service and application.DoEvents()

  • Thread starter Thread starter Wolfgang Kutschera
  • Start date Start date
W

Wolfgang Kutschera

Greeting folks!

This question has been asked before, but unfortunately never really
been answeared. I would appreciate to get any clous on how to solve
the problem:

I am writing a windows service that interacts with the desktop. (It
shows a status dialog if a user is currently logged on.) To get this
dialog shown correctly I need to have something like an
application.doevents() call in my service. Is there anything like that
for use with such services?

I would appreciate any help.
Rick
 
If you're service is a background service then it should be ok. How often &
for how long does the service interact with the Desktop?

Crouchie1998
BA (HONS) MCP MCSE
 
Wolfgang Kutschera said:
This question has been asked before, but unfortunately never really
been answeared. I would appreciate to get any clous on how to solve
the problem:

I am writing a windows service that interacts with the desktop. (It
shows a status dialog if a user is currently logged on.) To get this
dialog shown correctly I need to have something like an
application.doevents() call in my service. Is there anything like that
for use with such services?

You could separate the UI from the service and then let the UI application
communicate with the service using events, remoting, sockets, ... This
would avoid the problems introduced by services which interact with the
desktop.
 
Crouchie1998 said:
If you're service is a background service then it should be ok. How often &
for how long does the service interact with the Desktop?

Crouchie1998
BA (HONS) MCP MCSE

Hi!

The service mainly does it's work within the first two minutes after
it is being started. The interaction should take place during this
period of time. Currently if a user is logged on the windows appears
on the users screen, but never gets the time to handle the draw event.
(Means the frame is visible, the content isn't...)

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top