By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,165 Members | 1,429 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,165 IT Pros & Developers. It's quick & easy.

Windows Service and application.DoEvents()

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
Nov 21 '05 #2

P: n/a
"Wolfgang Kutschera" <ri**@dangerous.it> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
"Crouchie1998" <cr**********@discussions.microsoft.com> wrote in message news:<#t*************@TK2MSFTNGP10.phx.gbl>...
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
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.