.

Threading basics

private void LoadWord(string text)
        {
            System.Threading.Thread t = new System.Threading.Thread(() =>
            {
                string x = hh.GetWebPage("http://dictionary.reference.com/browse/" + text);
                if (labeldef.InvokeRequired)
                {
                    labeldef.Invoke(new MethodInvoker(() => { labeldef.Text = x; }));
                    return;
                }
                else
                    labeldef.Text = x; //UpdateTheTreeview(this, null);
            });
            t.Start();
        }

What's your thoughts on this?

*

Protected by WP Anti Spam