Application Focus

  • Thread starter Thread starter Miro
  • Start date Start date
M

Miro

How do I check the windowstate or the BringToFront or something property on
the form to see if the form is the actual form that has focus right now in
windows?

I created an app that runs minimized and gets data, and if for example (
notepad is open ) and the cursor is in notepad, I want the program to do
something different than if my actual vb program is the one focused on ?

Thanks,

Miro
 
I will try the ContainsFocus, I have tried the focused and i couldnt get it
working.

Thanks,


dotNetDave said:
Did you try the Property ContainsFocus or Focused?

======================================
David McCarter [Microsoft VB.NET MVP]
www.vsdntips.com
VSDN Tips & Tricks .NET Coding Standards available at:
www.cafepress.com/vsdntips.20412485


Miro said:
How do I check the windowstate or the BringToFront or something property
on
the form to see if the form is the actual form that has focus right now
in
windows?

I created an app that runs minimized and gets data, and if for example (
notepad is open ) and the cursor is in notepad, I want the program to do
something different than if my actual vb program is the one focused on ?

Thanks,

Miro
 
Back
Top