Click here to Skip to main content
15,843,623 members
Home / Discussions / C#
   

C#

 
AnswerRe: getting Zedgraph into a stand-alone application Pin
Christian Graus25-Oct-09 0:42
protectorChristian Graus25-Oct-09 0:42 
AnswerRe: getting Zedgraph into a stand-alone application Pin
Nagy Vilmos25-Oct-09 23:59
professionalNagy Vilmos25-Oct-09 23:59 
GeneralRe: getting Zedgraph into a stand-alone application Pin
JoeHapp2-Jun-11 8:39
JoeHapp2-Jun-11 8:39 
Questionsocket minimum recieve Pin
programmer.coder24-Oct-09 23:13
programmer.coder24-Oct-09 23:13 
QuestionProblem with extracting file names from the file names returned by FTP LIST command Pin
nccsbim07124-Oct-09 22:04
nccsbim07124-Oct-09 22:04 
QuestionTreeview in a thread [modified] Pin
Ronni Marker24-Oct-09 21:54
Ronni Marker24-Oct-09 21:54 
AnswerRe: Treeview in a thread Pin
Ronni Marker24-Oct-09 21:55
Ronni Marker24-Oct-09 21:55 
AnswerRe: Treeview in a thread Pin
Nicholas Butler24-Oct-09 22:57
sitebuilderNicholas Butler24-Oct-09 22:57 
As you have found out, you must always use a UI control on the main thread. So you will have to marshal the treeView1.Nodes.Add calls on to the main thread using Invoke or BeginInvoke.

What's taking the time - is it DOCTemp.GetGroups() or the loop round TemplateManagerTreeView?

If it's the GetGroups call, then you can just marshal the whole loop in one go. If it's actually adding the nodes, you will have to split the loop up into chunks and marshal them one after the other. Invoking every TemplateManagerTreeView call individually would be slow.

Nick

----------------------------------
Be excellent to each other Smile | :)

GeneralRe: Treeview in a thread Pin
Ronni Marker24-Oct-09 23:51
Ronni Marker24-Oct-09 23:51 
GeneralRe: Treeview in a thread Pin
Nicholas Butler25-Oct-09 0:32
sitebuilderNicholas Butler25-Oct-09 0:32 
GeneralRe: Treeview in a thread Pin
Ronni Marker26-Oct-09 18:59
Ronni Marker26-Oct-09 18:59 
AnswerRe: Treeview in a thread Pin
Luc Pattyn25-Oct-09 13:35
sitebuilderLuc Pattyn25-Oct-09 13:35 
GeneralRe: Treeview in a thread Pin
Ronni Marker26-Oct-09 19:03
Ronni Marker26-Oct-09 19:03 
QuestionHow can i run the open and save file codes in C# ??? [modified] Pin
ghe143lhei24-Oct-09 20:59
ghe143lhei24-Oct-09 20:59 
AnswerRe: How can i run the open and save file codes in C# ??? Pin
OriginalGriff24-Oct-09 23:43
mveOriginalGriff24-Oct-09 23:43 
Questionhow to bind TreeView to hierarchical data (Recursive Queries) ? Pin
hdv21224-Oct-09 19:25
hdv21224-Oct-09 19:25 
QuestionAn array of valuetypes that contain ponters to other valuetypes in an array. [modified] Pin
CaptainSeeSharp24-Oct-09 14:13
CaptainSeeSharp24-Oct-09 14:13 
AnswerRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 14:16
protectorChristian Graus24-Oct-09 14:16 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
CaptainSeeSharp24-Oct-09 14:30
CaptainSeeSharp24-Oct-09 14:30 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. PinPopular
Christian Graus24-Oct-09 15:12
protectorChristian Graus24-Oct-09 15:12 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Not Active24-Oct-09 16:47
mentorNot Active24-Oct-09 16:47 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus25-Oct-09 0:24
protectorChristian Graus25-Oct-09 0:24 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 15:42
protectorChristian Graus24-Oct-09 15:42 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. [modified] Pin
CaptainSeeSharp24-Oct-09 17:01
CaptainSeeSharp24-Oct-09 17:01 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus25-Oct-09 0:23
protectorChristian Graus25-Oct-09 0:23 

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.