推 prof5F:寫在InitializeComponent()下面呢 11/28 11:03
→ hirabbitt:那是哪裡0.0 沒看到耶 11/28 11:25
→ hirabbitt:喔我知道了 寫寫看 有問題再問 謝謝 11/28 11:30
→ hirabbitt:不行耶...那邊g2根本還沒開出來啊0.0 11/28 11:38
推 prof5F:喔,如果按照你的程式碼的話,是按button以後才建立g2 11/28 11:41
→ prof5F:那你設一個timer在load裡面,然後執行完就關掉timer 11/28 11:42
→ hirabbitt:我這樣寫... 11/28 11:55
→ hirabbitt:g2 = pictureBox2.CreateGraphics(); 11/28 11:56
→ hirabbitt:InitializeComponent(); 11/28 11:56
→ hirabbitt:Pen p = new Pen(c1, 1); 11/28 11:56
→ hirabbitt:g2.DrawEllipse(p, 0, 0, 16, 16); 11/28 11:56
→ hirabbitt:有閃過一個圓 但是又消失了 11/28 11:56
推 horngsh:原PO者問的問題我有遇過, 要寫在form1_paint事件中才出得 11/29 15:42
推 horngsh:來 11/29 15:42