1、在此次先進(jìn)行定義public static AOC aoc = null; aoc = this; 2、在窗體中寫入 Control.CheckForIllegalCrossThreadCalls = false;private void Form1_Load(object sender, EventArgs e) { Control.CheckForIllegalCrossThreadCalls = false; } 3、將要改變值的控件Modifiers屬性改為public
4、在類中使用方式AOC.aoc.控件;(如:AOC.aoc.progressBar1.Value=10;)
|
|