Connecting Tech Pros Worldwide Help | Site Map

treeview conrol question

kidzero
Guest
 
Posts: n/a
#1: Nov 15 '05
Hello,

Is there any easy way to control treeview selection ?
For example if user pushes button "next" treeview control selects next node.
if user pushes button "prev" treeview control selects previous node.
I asked because by default in treeview control if you press arrow keys such
as "up" or "down"
it automaticly selects next or previous node.
Ofcourse i can code all node selection stuff, but maby there is another easy
way.

Martin.


Dmitriy Lapshin [C# / .NET MVP]
Guest
 
Posts: n/a
#2: Nov 15 '05

re: treeview conrol question


Hi,

It can probably be cheated by sending corresponding keyboard messages. But I
believe no programmatic way is exposed by the TreeView.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"kidzero" <kidzero@takas.lt> wrote in message
news:eR901UzhDHA.4024@TK2MSFTNGP11.phx.gbl...[color=blue]
> Hello,
>
> Is there any easy way to control treeview selection ?
> For example if user pushes button "next" treeview control selects next[/color]
node.[color=blue]
> if user pushes button "prev" treeview control selects previous node.
> I asked because by default in treeview control if you press arrow keys[/color]
such[color=blue]
> as "up" or "down"
> it automaticly selects next or previous node.
> Ofcourse i can code all node selection stuff, but maby there is another[/color]
easy[color=blue]
> way.
>
> Martin.
>
>[/color]

Closed Thread


Similar C# / C Sharp bytes