Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

action being performed on this control is being called from the wrong thread c#

public delegate void FunctionDelegate();

treeViewControl.BeginInvoke(new FunctionDelegate(TreeViewBug));

private void TreeViewBug() {
	Random rand = new Random();
    TreeNode node = treeViewControl.Nodes.Add("Parent");

	for (int i = 0 ; i < 10000 ; i++ ) // some kind of long operation
        node.Nodes.Add(rand.Next().ToString());
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity cinemachine lock camera axis 
Csharp :: remove focus from button unity 
Csharp :: Arrange array element in right and left order starting from least element 
Csharp :: how to compare 2 date time in asp.net core 3.1 
Csharp :: overload indexer c# 
Csharp :: remove first object from list c# 
Csharp :: c # c^b 
Csharp :: trnasform ubnity 
Csharp :: gravity script unity 
Csharp :: unity detect object with raycast 
Csharp :: uni valued tree 
Csharp :: game object find 
Csharp :: c# loading assembly at runtime 
Csharp :: unity c# check if multiple keys are pressed 
Csharp :: how to remove last 3 characters from string in c# 
Csharp :: unity move object to mouse position 
Csharp :: c# search on google 
Csharp :: c# stringbuilder to file 
Csharp :: c# convert string to enum value 
Csharp :: basic movement script unity 
Csharp :: c# connect to mongodb 
Csharp :: c# encrypt decrypt string 
Csharp :: get waht is differnt between two arrays c# 
Csharp :: google sheets sum if check contains string 
Csharp :: Prevent player rotation unity 
Csharp :: milliseconds to seconds c# 
Csharp :: c# send email 
Csharp :: c# get user appdata folder 
Csharp :: c# find duplicates in list of strings 
Csharp :: c# get all the column names from datagridview 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =