OnPaintBackground does not fire!!
C#
3
Posts
2
Posters
0
Views
1
Watching
-
hi, i am creating a class that inherits LinkLabel. I am trying to override the method OnPaintBackground to make it transparent but it seems it is not fired. any idea why or how can i make my LinkLabel transparent? regards, rnv
Not sure, but add this to your constructor.
SetStyles(ControlStyles.Opaque, false);
-
Not sure, but add this to your constructor.
SetStyles(ControlStyles.Opaque, false);