Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2007

Tip: Looking for answers? Try searching our database.

Seeing the selected node after TreeView expansion

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bg_ie@yahoo.com - 01 Jun 2007 13:46 GMT
Hi there,

I have a treeview withmany nodes within it, at many levels. I have
writen a function which collapses the list at a certain node level and
another function for expanding the list out fully. The problem is that
after I expand the list, the end (bottom section) of the expanded list
comes into view, resulting in the fact that sometimes the selected
node is not visable after expansion. I wish to adjust the view so that
the selected items appears at the top of the treeview's view (window).

How would you solve this?

Barry.
DK - 01 Jun 2007 21:04 GMT
Did you try TreeNode.EnsureVisible method? It makes sure that the treenode is
visible by scrolling the treeview control.

http://msdn2.microsoft.com/en-us/library/system.windows.forms.treenode.ensurevis
ible.aspx


Signature

DKumar

> Hi there,
>
[quoted text clipped - 9 lines]
>
> Barry.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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



©2008 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.