在win form应用程序中,我有一个线程数组,其启动方式如下:Thread[] threads = new Thread[10];
threads[i] = new Thread(new ThreadStart(Job));
// How to make sure allthreads have exited, when the boolean =
我有两个线程。在我的工作线程(不是main Thread)中,我创建了一个picturebox数组,有时我需要向主窗体添加一个新的picturebox,但我没有访问这个窗体的权限。我在某处读到需要使用invoke方法,但我只知道如何更新一个picturebox或标签。我不知道如何使用这段代码:food[x].Size = new Size(10,10);
下面的代码将背景工作人员添加到VB.net WPF项目中:Imports System.ComponentModel Me.InitializeComponent()End ClassDim worker As New BackgroundWorkerPrivate Sub worker_DoWork(ByVal sender As