110,572
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < 10000; i++)
{
Button btn = new Button();
btn.Text = i + "!";
flowLayoutPanel1.Controls.Add(btn);
Console.WriteLine(i);
}
}
}
}
System.ComponentModel.Win32Exception
创建窗口句柄时出错。