C# Control.BeginInvoke

private void ResheshState(string msg)
{
if (lblState.InvokeRequired == true)
{
lblState.BeginInvoke((MethodInvoker)delegate
{
lblState.Text = msg;
});
}
else
lblState.Text = msg;
}

你可能感兴趣的:(ini)