delay ring between two font style changing

Posted by Hesam Qodsi on Stack Overflow See other posts from Stack Overflow or by Hesam Qodsi
Published on 2010-04-06T08:38:03Z Indexed on 2010/04/06 8:43 UTC
Read the original article Hit count: 263

Filed under:
|
|

Hi
I want to change font style of a control , for a short time. for example 2 secounds. I do like :

label1.Font = new Font(label1.Font, label1.Font.Style | FontStyle.Bold);
for(int i=0,i<4000000,i++);
label1.Font = new Font(label1.Font, label1.Font.Style | FontStyle.Regular);

but it doesn't work. what is the problem?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET