S
seguso
Hello,
In my application, I am drawing some pushbuttons with
VisualStyleRenderer, but the buttons appear with a black outline.
Could someone please tell me why?
Here is a picture of the black outline:
http://picasaweb.google.com/maurizio.colucci/Demo/photo#5086249187839415826
Additional informations:
I am using Visual Studio 2005. The code I am using to draw buttons is
Dim renderer_normal As VisualStyleRenderer
renderer_normal = New
VisualStyleRenderer(VisualStyleElement.Button.PushButton.Normal)
[..]
renderer_normal.DrawBackground(gr, rect) ' gr is a Graphics object
and rect is a Rectangle
I am drawing on a backbuffer (double buffering). I am clearing the
backbuffer with white before drawing the buttons, but the black
outline appears nevertheless.
Also, when I draw disabled buttons, they don't have a black outline
(see picture).
Thanks for any help
Maurizio
In my application, I am drawing some pushbuttons with
VisualStyleRenderer, but the buttons appear with a black outline.
Could someone please tell me why?
Here is a picture of the black outline:
http://picasaweb.google.com/maurizio.colucci/Demo/photo#5086249187839415826
Additional informations:
I am using Visual Studio 2005. The code I am using to draw buttons is
Dim renderer_normal As VisualStyleRenderer
renderer_normal = New
VisualStyleRenderer(VisualStyleElement.Button.PushButton.Normal)
[..]
renderer_normal.DrawBackground(gr, rect) ' gr is a Graphics object
and rect is a Rectangle
I am drawing on a backbuffer (double buffering). I am clearing the
backbuffer with white before drawing the buttons, but the black
outline appears nevertheless.
Also, when I draw disabled buttons, they don't have a black outline
(see picture).
Thanks for any help
Maurizio