Re: How to find if Application has Focus
- From: "Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin@xxxxxxxxx>
- Date: Wed, 14 May 2008 07:03:15 -0700 (PDT)
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
.
- Follow-Ups:
- Re: How to find if Application has Focus
- From: Albe V°
- Re: How to find if Application has Focus
- References:
- How to find if Application has Focus
- From: Albe V°
- How to find if Application has Focus
- Prev by Date: Re: Connect To Java Servlet using c# windows forms
- Next by Date: Re: Working the disk sectors directly from C#
- Previous by thread: RE: How to find if Application has Focus
- Next by thread: Re: How to find if Application has Focus
- Index(es):
Relevant Pages
|
Loading