469,270 Members | 1,790 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

app/form out of focus stops form-refresh !

Hi,

I'm trying to develop this vb.net application which gathers info.
When I start the gathering process, I refresh text-fields in the form to see
progress and to see where it gets.
This works fine as long as the application has the focus.

When I start an other application or switch to an other application (e.g.
taskmanager, outlook), the form-refresh of my application stops.
When I put the focus back to my application, the form remains blank. the
refreshes do not occur ?!?
In taskmanager the application gets status not-responding, but it does what
it's supposed to do.

What can I do to correct this ?

jobi
Nov 20 '05 #1
5 3457
Cor
Hi Jobi,

That sounds not as normal behaviour, it even will be a problem because when
you refresh all the time because I thought that it is trying to get the
focus, did you do something to prevent that?

Cor
I'm trying to develop this vb.net application which gathers info.
When I start the gathering process, I refresh text-fields in the form to see progress and to see where it gets.
This works fine as long as the application has the focus.

When I start an other application or switch to an other application (e.g.
taskmanager, outlook), the form-refresh of my application stops.
When I put the focus back to my application, the form remains blank. the
refreshes do not occur ?!?
In taskmanager the application gets status not-responding, but it does what it's supposed to do.

Nov 20 '05 #2
"jobi" <jo**@reply2.group> schrieb
Hi,

I'm trying to develop this vb.net application which gathers info.
When I start the gathering process, I refresh text-fields in the
form to see progress and to see where it gets.
This works fine as long as the application has the focus.

When I start an other application or switch to an other
application (e.g. taskmanager, outlook), the form-refresh of my
application stops. When I put the focus back to my application, the
form remains blank. the refreshes do not occur ?!?
In taskmanager the application gets status not-responding, but it
does what it's supposed to do.

What can I do to correct this ?


Complain to the WinXP developers. See 3rd paragraph:

http://msdn.microsoft.com/library/en...sagequeues.asp

The developers forgot that a not responding window may still display
something even if it intentionally does not accept input. :-(((((((((((((
This ghost window "feature" can not be turned off.

Two ways around: Either use application.doevents (carefully!) or put the
work in a different thread. Both may lead to much more work than we had to
do in previous OS versions.

--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
I guess Arim Zingler's reply describes my problem.

Thanks
"Cor" <no*@non.com> wrote in message
news:uo**************@TK2MSFTNGP10.phx.gbl...
Hi Jobi,

That sounds not as normal behaviour, it even will be a problem because when you refresh all the time because I thought that it is trying to get the
focus, did you do something to prevent that?

Cor
I'm trying to develop this vb.net application which gathers info.
When I start the gathering process, I refresh text-fields in the form to

see
progress and to see where it gets.
This works fine as long as the application has the focus.

When I start an other application or switch to an other application (e.g. taskmanager, outlook), the form-refresh of my application stops.
When I put the focus back to my application, the form remains blank. the
refreshes do not occur ?!?
In taskmanager the application gets status not-responding, but it does

what
it's supposed to do.


Nov 20 '05 #4
> Complain to the WinXP developers. See 3rd paragraph:

http://msdn.microsoft.com/library/en...rinterface/win
dowing/messagesandmessagequeues/aboutmessagesandmessagequeues.asp
The developers forgot that a not responding window may still display
something even if it intentionally does not accept input. :-(((((((((((((
This ghost window "feature" can not be turned off.

Two ways around: Either use application.doevents (carefully!) or put the
work in a different thread. Both may lead to much more work than we had to
do in previous OS versions.

--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


100% on target !

I'll dig into the workarounds.

Do you have a "checklist" regarding the pitfalls for application.doevents ?

Thanks
Jobi
Nov 20 '05 #5
"jobi" <jo**@reply2.group> schrieb

100% on target !

I'll dig into the workarounds.

Do you have a "checklist" regarding the pitfalls for
application.doevents ?


Only one item on the list: ;-)
Watch for re-entrance. Means: During processing a message, another message
may occur and be processed - this includes that the user can close the form
but your process still continues.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Doug Bell | last post: by
4 posts views Thread by JLM | last post: by
3 posts views Thread by Brian Keating EI9FXB | last post: by
16 posts views Thread by AJPlonka | last post: by
4 posts views Thread by Alan Edmund | last post: by
11 posts views Thread by ChrisM | last post: by
11 posts views Thread by Rik | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.