[WinForm] 익명변수
2012. 4. 6. 13:53ㆍC#/WinForm
반응형
public string CurrentActivity
{
get { return textBox1.Text; }
set
{
if (InvokeRequired)
{
MethodInvoker invoker = new MethodInvoker(delegate()
{
textBox1.Text = value;
});
Invoke(invoker);
}
else
{
textBox1.Text = value;
}
}
}
반응형
'C# > WinForm' 카테고리의 다른 글
[WinForm] 배열선언안하고 컨트롤 찾기 (0) | 2012.06.04 |
---|---|
[WinForm]람다 델리게잇 익명메소드 (0) | 2012.04.16 |
[WinForm] Mouse Api (0) | 2012.02.17 |
[WinForm] 크로스쓰레딩 발동잠금 (0) | 2012.02.17 |
[WinForm] 마우스 포인트 옮기기 (0) | 2012.02.17 |