Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
Generalsharing new Instance of class across the application Pin
Adi Narayana5-May-04 3:08
Adi Narayana5-May-04 3:08 
GeneralRe: sharing new Instance of class across the application Pin
Stefan Troschuetz5-May-04 3:32
Stefan Troschuetz5-May-04 3:32 
GeneralPopulating a combobox with data from a rondom access file Pin
mikeyb255-May-04 3:06
mikeyb255-May-04 3:06 
GeneralRe: Populating a combobox with data from a rondom access file Pin
..Hubert..5-May-04 3:24
..Hubert..5-May-04 3:24 
GeneralImporting excel sheet, How to set Column range Pin
Tarakeshwar5-May-04 3:01
Tarakeshwar5-May-04 3:01 
GeneralRe: Importing excel sheet, How to set Column range Pin
Heath Stewart5-May-04 4:52
protectorHeath Stewart5-May-04 4:52 
QuestionHow to speed up loading of nodes in Tree Pin
Tarakeshwar5-May-04 2:52
Tarakeshwar5-May-04 2:52 
AnswerRe: How to speed up loading of nodes in Tree Pin
Heath Stewart5-May-04 4:28
protectorHeath Stewart5-May-04 4:28 
Calling BeginUpdate and EndUpdate is about the only thing you can do if you want to load all nodes at the same time. Even using threading, you'll have to use TreeView.Invoke (inheritted from Control) to add the TreeNode in the thread on which the TreeView was created (necessary, or you'll get strange problems if it even works at all). This still means that adding the tree nodes is synchronous, although initializing the tree nodes can happen in a separate thread (though this probably won't give you the 7 seconds you need).

If you don't need to load the entire tree, I recommend handling the TreeView.BeforeExpand event to implement an on-demand tree.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: How to speed up loading of nodes in Tree Pin
Werdna5-May-04 7:32
Werdna5-May-04 7:32 
GeneralInheritng C.Controls Pin
sreejith ss nair5-May-04 2:43
sreejith ss nair5-May-04 2:43 
GeneralRe: Inheritng C.Controls Pin
Heath Stewart5-May-04 4:25
protectorHeath Stewart5-May-04 4:25 
GeneralVB.NET or C# Pin
Serge Lobko-Lobanovsky5-May-04 2:25
Serge Lobko-Lobanovsky5-May-04 2:25 
GeneralRe: VB.NET or C# Pin
Rhelic5-May-04 2:29
Rhelic5-May-04 2:29 
GeneralRe: VB.NET or C# Pin
Colin Angus Mackay5-May-04 2:48
Colin Angus Mackay5-May-04 2:48 
GeneralRe: VB.NET or C# Pin
Serge Lobko-Lobanovsky5-May-04 3:37
Serge Lobko-Lobanovsky5-May-04 3:37 
GeneralIt's not about syntax Pin
Daniel Turini5-May-04 3:02
Daniel Turini5-May-04 3:02 
GeneralRe: It's not about syntax Pin
Serge Lobko-Lobanovsky5-May-04 3:50
Serge Lobko-Lobanovsky5-May-04 3:50 
GeneralRe: It's not about syntax Pin
scadaguy5-May-04 5:32
scadaguy5-May-04 5:32 
GeneralRe: It's not about syntax Pin
Andy Brummer5-May-04 9:36
sitebuilderAndy Brummer5-May-04 9:36 
GeneralRe: VB.NET or C# Pin
Colin Angus Mackay5-May-04 3:06
Colin Angus Mackay5-May-04 3:06 
GeneralRe: VB.NET or C# Pin
Serge Lobko-Lobanovsky5-May-04 4:05
Serge Lobko-Lobanovsky5-May-04 4:05 
GeneralRe: VB.NET or C# Pin
Heath Stewart5-May-04 4:23
protectorHeath Stewart5-May-04 4:23 
GeneralRe: VB.NET or C# Pin
Serge Lobko-Lobanovsky5-May-04 4:45
Serge Lobko-Lobanovsky5-May-04 4:45 
GeneralRe: VB.NET or C# Pin
Heath Stewart5-May-04 5:15
protectorHeath Stewart5-May-04 5:15 
GeneralRe: VB.NET or C# Pin
Daniel Turini5-May-04 8:45
Daniel Turini5-May-04 8:45 

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.