Click here to Skip to main content
15,905,616 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Runtime instance creation Pin
Steven J Jowett16-Oct-08 22:44
Steven J Jowett16-Oct-08 22:44 
AnswerRe: Runtime instance creation Pin
Mycroft Holmes17-Oct-08 23:24
professionalMycroft Holmes17-Oct-08 23:24 
GeneralRe: Runtime instance creation Pin
SelvaShankar20-Oct-08 19:06
SelvaShankar20-Oct-08 19:06 
AnswerRe: Runtime instance creation Pin
SelvaShankar31-Oct-08 2:06
SelvaShankar31-Oct-08 2:06 
QuestionPopulate TreeView on demand in VB Pin
Sonhospa16-Oct-08 9:46
Sonhospa16-Oct-08 9:46 
AnswerRe: Populate TreeView on demand in VB Pin
Dave Kreskowiak16-Oct-08 10:05
mveDave Kreskowiak16-Oct-08 10:05 
NewsRe: Populate TreeView on demand in VB Pin
Sonhospa16-Oct-08 11:24
Sonhospa16-Oct-08 11:24 
GeneralRe: Populate TreeView on demand in VB Pin
Dave Kreskowiak16-Oct-08 12:07
mveDave Kreskowiak16-Oct-08 12:07 
Michael Schäuble wrote:
Up to here it works fine - and I think even better than with dummies, because adding dummies I have the "plus" even for folders without subfolders... don't I?


Yep. The subfolder isn't populated until the user clicks on the plus. So, if there are an excessive number of sub-subfolders, you're not wasting time populating folders that the user isn't intersted in.


Michael Schäuble wrote:
my "for ... next" loop says "..each ChildNode ... in Treeview.SelectedNode".


The event you're looking for is BeforeExpand. With it, you get the node that's expanding. You don't need SelectedNode at all.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




QuestionRe: Populate TreeView on demand in VB Pin
Sonhospa16-Oct-08 12:35
Sonhospa16-Oct-08 12:35 
AnswerRe: Populate TreeView on demand in VB Pin
Dave Kreskowiak16-Oct-08 13:50
mveDave Kreskowiak16-Oct-08 13:50 
GeneralRe: Populate TreeView on demand in VB Pin
Sonhospa16-Oct-08 20:22
Sonhospa16-Oct-08 20:22 
GeneralRe: Populate TreeView on demand in VB Pin
Dave Kreskowiak17-Oct-08 1:54
mveDave Kreskowiak17-Oct-08 1:54 
QuestionProblems Calling A Function Pin
Phantom71516-Oct-08 7:47
Phantom71516-Oct-08 7:47 
AnswerRe: Problems Calling A Function Pin
nlarson1116-Oct-08 7:56
nlarson1116-Oct-08 7:56 
GeneralRe: Problems Calling A Function Pin
Phantom71516-Oct-08 8:01
Phantom71516-Oct-08 8:01 
GeneralRe: Problems Calling A Function Pin
nlarson1116-Oct-08 8:05
nlarson1116-Oct-08 8:05 
AnswerRe: Problems Calling A Function Pin
Caio Kinzel Filho16-Oct-08 8:28
Caio Kinzel Filho16-Oct-08 8:28 
GeneralRe: Problems Calling A Function Pin
Phantom71516-Oct-08 8:44
Phantom71516-Oct-08 8:44 
GeneralRe: Problems Calling A Function Pin
Caio Kinzel Filho16-Oct-08 9:01
Caio Kinzel Filho16-Oct-08 9:01 
GeneralRe: Problems Calling A Function Pin
Phantom71516-Oct-08 9:04
Phantom71516-Oct-08 9:04 
GeneralRe: Problems Calling A Function Pin
Caio Kinzel Filho16-Oct-08 9:15
Caio Kinzel Filho16-Oct-08 9:15 
GeneralRe: Problems Calling A Function Pin
Caio Kinzel Filho16-Oct-08 9:17
Caio Kinzel Filho16-Oct-08 9:17 
GeneralRe: Problems Calling A Function Pin
Phantom71516-Oct-08 9:37
Phantom71516-Oct-08 9:37 
GeneralRe: Problems Calling A Function Pin
Caio Kinzel Filho17-Oct-08 6:55
Caio Kinzel Filho17-Oct-08 6:55 
QuestionThreading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 5:56
Jim Buckley Barrett16-Oct-08 5:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.