this.BeginInvoke(new Action(
() =>
{
//内部为对控件进行的操作
listBoxMsg.ForeColor = Color.Blue;
listBoxMsg.Items.Add(_strLog);
listBoxMsg.SelectedIndex = listBoxMsg.Items.Count - 1;
if (listBoxMsg.Items.Count > 1000)
{
listBoxMsg.Items.Clear();
}
}));