المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : paint event not called



C# Programming
06-10-2012, 01:02 AM
Hi all, I want to draw the contents of a TableLayoutPanel control on a printer page. When I call Invalidate() of the control, the paint event is not called. The drawing therefore becomes blank. Calling its *******() function does not also help.

However, if I call its DrawToBitmap(), the paint event is called. Is there a way I can get the Paint event called so that I can draw on the printer page without creating a Bitmap out of it before? Thanks in advance