Re: How to find if Application has Focus



On May 14, 5:59 am, Albe V° <vaccariTO...@xxxxxxxxxxx> wrote:
In my Application, I need to make a certain graphical refresh,
interrogating SqlServer, only if Application has focus (i.e. the title
bar is blue).

From where you do the refresh?

I think that you need to check not if a form is focused but if the
form where you are painting is active.
are y ou painting from a worker thread?
In any case you use Form.ActiveForm to get the active form of the app

.



Relevant Pages

  • Re: Refresh Form
    ... Tips for Access users - http://allenbrowne.com/tips.html ... print a letter pulling data from the active form. ... button with a macro to pull the appropriate letter. ... Currently I have a refresh button so users can click on it and refresh the ...
    (microsoft.public.access.forms)
  • Re: Photographic rights
    ... the bar patrons watch. ... resulting video would be available to anyone involved. ... perhaps give a copy of it to whoever ends up buying the painting. ... the final painting in your work, or keep the camera further from it - ...
    (rec.photo.digital)
  • Re: label split task bar
    ... would not be one task "painting" interrupted a number of times. ... "paint room 203" ... ... i need to be able to label each bar. ...
    (microsoft.public.project)
  • Refresh Form
    ... I have a form on which I want to be able to change data and then immediately ... print a letter pulling data from the active form. ... button with a macro to pull the appropriate letter. ... Currently I have a refresh button so users can click on it and refresh the ...
    (microsoft.public.access.forms)
  • How to paint corners of dialog when using dc.RoundRect()
    ... I've created a dialog app without Title bar and I'm am painting the dialog ... I've gotten rid of the flicker problem but the corners ... Does anyone have a suggestion on how to paint the corners ...
    (microsoft.public.vc.mfc)

Loading