Thursday, November 17, 2005

Windows User Controls: Transparent Backgrounds

For some reason by default user controls do not support background colors making it a real pain when placing the controls on gradient or image backgrounds. to overcome this put the following line in the initilize component method of your user control:

Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)


Post a Comment

<< Home