Answers for "how to invoke textbox from another task in c#"

C#
0

how to invoke textbox from another task in c#

if (progressBar.InvokeRequired)
               {

                   void Invoker()
                   {
                       progressBar.Properties.Maximum = count;


                       progressBar.PerformStep();
                       progressBar.Update();
                   }
                   progressBar.Invoke((MethodInvoker)Invoker);
               }
               else
               {
                   progressBar.PerformStep();
                   progressBar.Update();
               }
               
               
               
 //////////////////////// or
 //Update progress bar in separate task
progressBarControl.Invoke((Action) (() =>
progressBarControl.EditValue = 100));
Posted by: Guest on November-02-2020

Code answers related to "how to invoke textbox from another task in c#"

C# Answers by Framework

Browse Popular Code Answers by Language