Activated Event in TopLevel=False forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • enningo
    New Member
    • Jan 2010
    • 2

    Activated Event in TopLevel=False forms

    I'm having problem to get the Form.Activated (and .Deactivated for that matter) events to trigger for a Form with Form.TopLevel=F alse.

    The reason why the form is TopLevel=False is because I need to put it in a tabcontrol.

    Is there any other ways to detect when the Form is entered/activated?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Detect when the tabpage it is in becomes active?
    Thats what I do

    Comment

    • enningo
      New Member
      • Jan 2010
      • 2

      #3
      Plater, thanks for the advice. Problem is that I have multiple Forms per tab. (The tabs are basically worksheets where the user can arrange a multitude of different forms per their preference).

      Would be possible with some mouse tracking magic to figure out with Form that is active?

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        I was able to use the enter/leave events on the form to deal with that.
        the "enter" even was fired whenever focus shifted from a different form to any control on the current form(that accepts focus, clicking on a label for instance, no good) and the elave event fired whenever i went to a control on a different form

        Comment

        Working...