Application Focus

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Miro

    #1

    Application Focus

    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


  • =?Utf-8?B?ZG90TmV0RGF2ZQ==?=

    #2
    RE: Application Focus

    Did you try the Property ContainsFocus or Focused?

    =============== =============== ========
    David McCarter [Microsoft VB.NET MVP]

    VSDN Tips & Tricks .NET Coding Standards available at:
    www.cafepress.com/vsdntips.20412485


    "Miro" wrote:
    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
    >
    >
    >

    Comment

    • Miro

      #3
      Re: Application Focus

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

      Thanks,


      "dotNetDave " <dotNetDave@dis cussions.micros oft.comwrote in message
      news:CA77AC8D-235B-4418-805D-72EDCC8B4E31@mi crosoft.com...
      Did you try the Property ContainsFocus or Focused?
      >
      =============== =============== ========
      David McCarter [Microsoft VB.NET MVP]

      VSDN Tips & Tricks .NET Coding Standards available at:
      www.cafepress.com/vsdntips.20412485
      >
      >
      "Miro" wrote:
      >
      >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
      >>
      >>
      >>

      Comment

      Working...