Results 1 to 3 of 3

Thread: OnGotFocus Overrides

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Posts
    113

    OnGotFocus Overrides

    I have a form in which I have a treeview control. If the form loses focus and then regains focus, I want to ensure that the treeview is up-to-date and then reset focus back to the previous selected node.

    However, in the OnGotFocus override I am having trouble knowing how to refrence the treeview.

    I have tried the following in the OnGotFocus sub:

    Dim mIndx as Integer

    mIndx = me.treeview1.selectednode.index


    Can anyone help me ?

    Thanks a bunch !

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    What are you overriding, the OnGotFocus on the form or the treeview?
    Dont gain the world and lose your soul

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Posts
    113
    OnGotFocus of the form

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width