List Info

Thread: C-Sharp (C#) Group: Programatically Select a TreeView Node




C-Sharp (C#) Group: Programatically Select a TreeView Node
country flaguser name
United States
2007-02-10 06:16:35
Hi there,

I've looked around the different groups and still can't
figure this
out without resorting to scrappy code............

I want to programtically select and highlight a TreeView
node, such
that it looks the same as if a user has clicked it.

I'm aware about the SelectedNode property, but this just
seems to
expand the TreeView to show the node in question, but not
highlight
it.

I'm aware that I could change the back and fore colour, but
this seems
like trying to workaround something that I'd assume to be
simple?

Is there an easy way for me to do what I'm after and still
have the
TreeView in a normal state, such that if I then go and click
a
different node after, that one is highlighted like usual and
the
previously programmatically selected node is no longer
highlighted /
selected?

Thanks in advance,
Mike.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://g
roups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---


C-Sharp (C#) Group: Re: Programatically Select a TreeView Node
country flaguser name
United States
2007-02-10 08:41:58
http://groups.google.co.uk/group/DotNetDevelopment
/browse_thread/thread/e965cf0ee9dd6308/4da9443d6cfab78f#4da9
443d6cfab78f


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://g
roups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )