Application Focus

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
 
M

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top