2012-07-10 48 views

回答

0

,而不是試圖處理OnCellPaintevent,嘗試重寫的OnPaint和/或TableLayoutPanel中的類OnCellPaint方法:

protected override void OnCellPaint(PaintEventArgs e) 
    { 
     base.OnCellPaint(e); 

     // Your Code Here after the call to the base class. 
    } 

而且,嘗試使用的Invalidate(TRUE)。布爾參數指示控件是否應使其所有子控件失效。

相關問題