Display: Cloud | List
Most Popular Tags
Results (2 total) All > vb.net (x) > threading (x)
Example 1 (Dispatcher.Invoke Method (DispatcherPriority, Delegate, Object) (System.Windows.Threading))
C# example: string stringVal = "my text"; MyTextBox.Dispatcher.Invoke(DispatcherPriority.Normal, (ThreadStart)delegate { MyTextBox.Text = stringVal; }); VB.net example: PartialPublicClass Window1 Inherits System.Windows.Window PrivateDelegateSub SetLabelTextDelegate(ByV
Last modified by Dessus on 11/11/2007 12:53:46 AM
VB.NET Example: Update Two ProgressBars asynchronously (Control.Invoke Method (Delegate, Object[]) (System.Windows.Forms))
Following example illustrates updating multiple ( 2 progressbars ) asynchronously by UI thread invoke a delegate, which updates progressbar valueThere are three files for this example 1. Form1.vb: creates two new threads and updates progressbars 2. Form1.Designer.vb: Windows Form designer code 3. Calculate.vb: Emulates a heavy work(by letting current thread sleep)Fi
Last modified by skim milk on 9/12/2007 4:47:59 AM
Tags:  example  threading  vb.net
Page view tracker