本人初学
试着做了一个聊天室
现在只能在textbox中显示聊天
希望做的美观一点
放了一个panel
但是线程中控件加不上去
求教
------解决思路----------------------
今天测试控件刚好有个现成的:
new Thread(() =>
{
Panel panel = new Panel();
panel.Size = new Size(30, 30);
panel.Location = new Point(40, 40);
panel.BorderStyle = BorderStyle.FixedSingle;
this.BeginInvoke(new Action(() =>
{
this.Controls.Add(panel);
}));
}).Start();