Today i wanted to create a light weight UI thread to make a button bliking. here is the sample code.
ThreadPool.QueueUserWorkItem(BlinkChatButton);
private void BlinkChatButton(object state)
{
while (canBlink)
{
Thread.Sleep(1000);
}
}
Tuesday, May 05, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment