https://foro.gambas-es.org/viewtopic.php?f=4&t=7971&p=47960#p47960
-----------------------------------
cogier
Sabado, 18 Abril 2020, 15:03

Re: Seleccionar El Iten Siguiente O Anterior De Un TreeView
-----------------------------------
Intenta con el código de abajo: -


[code linenumbers=false syntax=gambas]
Public Sub Button1_Click()

  TreeView1.MoveCurrent()
  
  If TreeView1.MoveAbove() Then
    TreeView1.Selection = [TreeView1.Keys[TreeView1.Keys.Max]]
  Else
    TreeView1.Item.Selected = True
  End If

End

Public Sub Button2_Click()

  TreeView1.MoveCurrent()
  
  If TreeView1.Movebelow() Then
    TreeView1.Selection = [TreeView1.Keys[0]]
  Else
    TreeView1.Item.Selected = True
  End If

End[/code]


