Results 1 to 19 of 19

Thread: Focus problem

Hybrid View

  1. #1

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Focus problem

    I have used a couple of controls from the vbAccelerator site in this project, so you may have a problem running it.
    They are the treeview and the image list.

    I have changed it as suggested, but I still get the error.!

    To get this problem, when running in IDE, select "Membership" from the treeview, then select "Add New Member".
    You will see that the textbox is highlighted, but the focus isn't there until you press the tab key for the second time.

    Thanks for the help
    Last edited by aikidokid; Jan 18th, 2008 at 03:53 PM.
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Focus problem

    Since the Treeview is vbAccerator's I can't run the project but maybe I can still help. First, put something like the following in the GotFocus event of txtAdd.

    Code:
    If Index = 0 Then
        Debug.Print "I got the focus"
    End If
    If that shows that it does get focus (and I assume it will), then put a breakpoint in the LostFocus event and see if the stack will show you how you got there. If it doesn't supply enough info then there's something else we can try.

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