- 380 名前:デフォルトの名無しさん [2019/08/19(月) 14:06:13.39 ID:VzpEDBAc0.net]
- 作ってみたフォームアプリ
public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { var op = new Output(); op.MainProcess(400); } } public class Output { public override int MainProcess(int count) { for (int col = 0; col < count; col++) listBox1.Items.Add(col);//←ここが動かない } } こんな感じです >>371 ありがとうございます。さっそく試してみます
|

|