Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to change something in the window using a thread wpf

    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        new Thread(DoSomething).Start();
    }
    public void DoSomething()
    {
        for (int i = 0; i < 100000000; i++)
        {
               this.Dispatcher.Invoke(()=>{
               textbox.Text=i.ToString();
               });    
        } 
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to learn c# fast to learn unity 
Csharp :: [1], [2], [3] 
Csharp :: how to get src value from img tag in c# 
Csharp :: multidimensional meaning 
Csharp :: take out substring from string 
Csharp :: mpeg get video size 
Csharp :: how to add onclick event dynamically in unity 
Csharp :: how to configure asp.net core on ionon 1&1 hosting 
Csharp :: vb.net get double item in list osf string 
Csharp :: C# check control type 
Csharp :: opération inter-threads non valide 
Csharp :: c# avoid screensaver 
Csharp :: il c# 
Csharp :: c# read csv file save to database dynamically 
Csharp :: Entity Framework 4 and caching of query results 
Csharp :: c# timestamp 
Csharp :: particles are pink - creating tex and material 
Csharp :: c# md5 hash bouncycastle encypt decrypt with key 
Csharp :: how to move an object with addforce 
Csharp :: list of countries in .net mvc 5 
Csharp :: SonarQube UnitTests 
Csharp :: AR light estimation Unity 
Csharp :: unitydont play sound until finsihed 
Csharp :: c# string with double quotes inside 
Csharp :: Cannot convert type child to type parent c# 
Csharp :: c# use cefcharp and selenium can? 
Csharp :: IOS app crashing on ios 15 unity 
Csharp :: netmath 
Csharp :: nullable 
Csharp :: datagrid drop file wpf mvvm example 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =