Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TreeView nodes collapse when from minimized

Status
Not open for further replies.

bradles

Technical User
Sep 15, 2002
110
AU
A VB.NET newbie using VS.NET 2005 beta 2,

Developing a small app with a TreeView, minimising the main form to the system tray and finding the treeview collapsed to the top most parent when the form is maximised.

Tried setting a variable to the last selected node and setting both tvw.SelectedNode to variable and EnsureVisible without success. In addition it seems the top most parent registers 0 for Nodes.Count when I step through the code.

Anyone come across this before or have any ideas?
 
FYI,

After plenty of breakpoints and code stepping, discovered that the Node_BeforeExpand event for the TreeView was being fired at every minimise, hiding the taskbar and vice versa. Have some code in there to read some files & folders, so setting some conditions within the sub did the trick.

Is this a bug in VB.NET 2005 beta 2?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top