Groups | Blog | Home
all groups > dotnet drawing api > july 2004 >

dotnet drawing api : backgroundimage on custom control


stewartmclean NO[at]SPAM supanet.com
7/30/2004 8:35:12 AM
Hi,

Im puzzled about something. I have my own control which I have derived
from Panel. In the designer, I get (of course), all of the properties
of Panel. I have the BackgroundImage set to a bitmap.

Why, if I override the OnPaint method and dont call the base
implementation, does the background image still get painted? Surely I
am choosing to take control of painting by overriding, and choosing
not to call the base stuff.

Tim Dawson
7/30/2004 5:28:21 PM
Because you're not overriding OnPaintBackground.

--

Tim Dawson


[quoted text, click to view]

AddThis Social Bookmark Button