Results 1 to 2 of 2

Thread: TreeView doesn't lose focus?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2005
    Posts
    74

    TreeView doesn't lose focus?

    I've searched the forum for a possible solution; there were several questions asked, but none answered with any solution . When I click on a node within the treeview, I would like the focus to change to a RichTextBox and have the mouse caret flash; this does not happen. I use VB.NET 2003. I've tried things such as: if textbox.canfocus then textbox.focus. The nodes are loaded from a node collection. Has anyone found a solution to this problem?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: TreeView doesn't lose focus?

    That's interesting. I just had a bit of a play around and the situation is still the same in .NET 2.0, despite the TreeView having some additional events. I can't find mention of the issue in the MS knowledge base or a workaround in any of the obvious places. Perhaps you should submit a bug report to Microsoft. They may have done this by design for some reason, but I don't see any explanation anywhere if that's the case.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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