Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / February 2005

Tip: Looking for answers? Try searching our database.

TreeView Question -Access 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick Roberts - 04 Feb 2005 17:11 GMT
I am very new to the tree control!

I am trying to select a node, by node key, of a populated treeview control.  
It seems to work (the correct node is selected) but it’s not highlighting the
node as if it were clicked upon.

I am sure I am missing some simple thing. I was looking at someone elses
code regarding the same issue.  Does Selected = true do the trick?  What does
.Ensurevisible do?

The code I am using to do this
Private Treeview As MSComctlLib.Treeview
…            

Treeview.Nodes(NodeKey).Selected = True
Treeview.Nodes(NodeKey).EnsureVisible
Alex Dybenko - 04 Feb 2005 20:50 GMT
look at treeview properties and try to set "hide seelction" to false

Signature

Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com

> I am very new to the tree control!
>
[quoted text clipped - 14 lines]
> Treeview.Nodes(NodeKey).Selected = True
> Treeview.Nodes(NodeKey).EnsureVisible
Rick Roberts - 05 Feb 2005 16:09 GMT
Thanks for responding Alex. I had the property set to false but your response
got me thinking.  I found out that I wasn't  setting the focus on the tree
control.  That part now works great.  

Thanks again,
Rick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.