Cags
Well-known member
Im working on an application using the .Net Compact Framewok have got an annoying little problem. The problem is basically a visible flash that is visible on a tab page.
I have create my own component inherited from TabPage, and have then overridden the OnPaint method (essentially to draw an image to the tab page), i have done this by creating a graphics object, painting the bitmap to it (along with a few other things), then painting it to the screen. The problem occurs when there are other Controls on that tab page (which also incorporate buffering to a graphics object). The problem is essentially that the tabpage is not drawn where there is a control placed on it, so untill that controls OnPaint method had ran through, it just appears as a white square, is there any way of avoiding this? I essentially want to draw the complete tabpage, before starting to draw the controls....
I have create my own component inherited from TabPage, and have then overridden the OnPaint method (essentially to draw an image to the tab page), i have done this by creating a graphics object, painting the bitmap to it (along with a few other things), then painting it to the screen. The problem occurs when there are other Controls on that tab page (which also incorporate buffering to a graphics object). The problem is essentially that the tabpage is not drawn where there is a control placed on it, so untill that controls OnPaint method had ran through, it just appears as a white square, is there any way of avoiding this? I essentially want to draw the complete tabpage, before starting to draw the controls....