TreeNode And SelectedNode visible

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

    TreeNode And SelectedNode visible

    Hi,

    How can I set the SelectedNode (by code) visible in the tree (the first
    visible node in the control) ?

    thank's


  • Aleksey

    #2
    Re: TreeNode And SelectedNode visible

    Try this

    treeView1.Selec tedNode = treeView1.Nodes[1].Nodes[1];

    Aleksey



    "Polo" <pb@rtech.be> wrote in message
    news:Og2RFB2aFH A.228@TK2MSFTNG P12.phx.gbl...[color=blue]
    > Hi,
    >
    > How can I set the SelectedNode (by code) visible in the tree (the first
    > visible node in the control) ?
    >
    > thank's
    >
    >[/color]


    Comment

    • Polo

      #3
      Re: TreeNode And SelectedNode visible

      This property set de selected Item but It doesn't ensure that it's visible
      I search a function "EnsureVisi ble"
      A+

      "Aleksey" <alexey.timonin @il.quest.com> a écrit dans le message de
      news:eZb2rm2aFH A.1152@tk2msftn gp13.phx.gbl...[color=blue]
      > Try this
      >
      > treeView1.Selec tedNode = treeView1.Nodes[1].Nodes[1];
      >
      > Aleksey
      >
      >
      >
      > "Polo" <pb@rtech.be> wrote in message
      > news:Og2RFB2aFH A.228@TK2MSFTNG P12.phx.gbl...[color=green]
      > > Hi,
      > >
      > > How can I set the SelectedNode (by code) visible in the tree (the first
      > > visible node in the control) ?
      > >
      > > thank's
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Carlos J. Quintero [.NET MVP]

        #4
        Re: TreeNode And SelectedNode visible

        The TreeNode class has a EnsureVisible method...

        --

        Best regards,

        Carlos J. Quintero

        MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
        You can code, design and document much faster.
        Free resources for add-in developers:
        MZ-Tools has a single goal: To make your everyday programming life easier. As an add-in to several Integrated Development Environment (IDEs) from Microsoft, MZ-Tools adds new menus and toolbars to them that provide many new productivity features.


        "Polo" <pb@rtech.be> escribió en el mensaje
        news:42a5b56c$0 $315$ba620e4c@n ews.skynet.be.. .[color=blue]
        > This property set de selected Item but It doesn't ensure that it's visible
        > I search a function "EnsureVisi ble"
        > A+[/color]


        Comment

        Working...