Event for form losing focus?

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

    Event for form losing focus?

    I have a form that calls ShowDialog on a number of different forms at
    different times. I want to be able to know anytime the form loses
    focus. But Form.Focused isn't ever true once a control has focus and
    Form.Leave does not fire when showdialog is called on another form.

    Anyone have any idea how to capture the form losing focus?

    Chris
  • Herfried K. Wagner [MVP]

    #2
    Re: Event for form losing focus?

    "Chris" <no@spam.com> schrieb:[color=blue]
    > Anyone have any idea how to capture the form losing focus?[/color]

    Maybe you are looking for the form's 'Deactivate' event.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • Chris

      #3
      Re: Event for form losing focus?

      Herfried K. Wagner [MVP] wrote:[color=blue]
      > "Chris" <no@spam.com> schrieb:
      >[color=green]
      >> Anyone have any idea how to capture the form losing focus?[/color]
      >
      >
      > Maybe you are looking for the form's 'Deactivate' event.
      >[/color]

      I swear I looked for that one and couldn't find it... must have been in
      my dream. This project is going to kill me....

      Thanks
      Chris

      Comment

      • rviray

        #4
        Re: Event for form losing focus?


        rviray Wrote:[color=blue]
        > have you tried the onblur event?[/color]

        NEVER MIND...re-read the problem...thoug ht it was an ASP.NET
        issue..sorry


        --
        rviray
        ------------------------------------------------------------------------
        rviray's Profile: http://www.msusenet.com/member.php?userid=4211
        View this thread: http://www.msusenet.com/t-1871095608

        Comment

        Working...