Programing/C#

C# 딜레이

흰군 2010. 2. 25. 13:50

//3초간 딜레이
System.Threading.Thread.Sleep(3000);

//페인트 외에서 그래픽 사용
Graphics G = this.CreateGraphics();

//스레드 문제 발생시
public Form1()
{
       InitializeComponent();
       CheckForIllegalCrossThreadCalls = false;
}

//label 배경 투명
public Form1()
{
       InitializeComponent();
       this.pictureBox1.Controls.Add(this.label1);
}