TreeView Navigation

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

    TreeView Navigation

    I have a TreeView on my app and I want to use the arrows to navigate in
    it but every time i click on one of the nodes and then press an arrow
    the TreeView losses focus and I am forced to click him again how can I
    resolve this?

    THX

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: TreeView Navigation

    Zamolxe,

    Are you doing something in the click event of the treeview which is
    causing another control to gain focus?


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Zamolxe" <Radu.Micu@gmai l.com> wrote in message
    news:1117725002 .986388.260290@ g49g2000cwa.goo glegroups.com.. .[color=blue]
    >I have a TreeView on my app and I want to use the arrows to navigate in
    > it but every time i click on one of the nodes and then press an arrow
    > the TreeView losses focus and I am forced to click him again how can I
    > resolve this?
    >
    > THX
    >[/color]


    Comment

    • Nicholas Paldino [.NET/C# MVP]

      #3
      Re: TreeView Navigation

      Zamolxe,

      Are you doing something in the click event handler which is causing
      another control to obtain focus?


      --
      - Nicholas Paldino [.NET/C# MVP]
      - mvp@spam.guard. caspershouse.co m

      "Zamolxe" <Radu.Micu@gmai l.com> wrote in message
      news:1117725002 .986388.260290@ g49g2000cwa.goo glegroups.com.. .[color=blue]
      >I have a TreeView on my app and I want to use the arrows to navigate in
      > it but every time i click on one of the nodes and then press an arrow
      > the TreeView losses focus and I am forced to click him again how can I
      > resolve this?
      >
      > THX
      >[/color]


      Comment

      • Zamolxe

        #4
        Re: TreeView Navigation

        Yes
        after I haved pressed the node in a richTextBox is displayed something


        SO how can I resolve this?

        Comment

        • Nicholas Paldino [.NET/C# MVP]

          #5
          Re: TreeView Navigation

          Zamolxe,

          Chances are this is the culprit. I would look at the event handler and
          determine which call to the rich text box is causing you to lose the focus.
          Then, work around it. In the worst case, you can always call the Focus
          method on the control to get focus back (after you work on the rich text
          view).

          --
          - Nicholas Paldino [.NET/C# MVP]
          - mvp@spam.guard. caspershouse.co m

          "Zamolxe" <Radu.Micu@gmai l.com> wrote in message
          news:1117727902 .019724.190410@ o13g2000cwo.goo glegroups.com.. .[color=blue]
          > Yes
          > after I haved pressed the node in a richTextBox is displayed something
          >
          >
          > SO how can I resolve this?
          >[/color]


          Comment

          • Zamolxe

            #6
            Re: TreeView Navigation

            Thx I will try it...

            Comment

            Working...