Return to Snippet

Revision: 31129
at August 30, 2010 16:39 by jx_boi


Initial Code
public Form1()
        {
            InitializeComponent();

            IntPtr handle = this.Handle;//force creation of handle

            ThreadStart ts = delegate
            {
                //UI operations
                progressBar1.Value = 80;
            };
            //executes synchronously on ts Thread
            Invoke(ts, null);
        }

Initial URL


Initial Description


Initial Title
UI Thread Delegate

Initial Tags


Initial Language
C#