T
Tom
Hi
Hi i am trying to draw on top of a button on a standard toolbar. All i
want to do is draw a small rectangle on the button to represent the
selected color.
I have tried the folowing code in the toolbar's parent control, which
is fired when the selected color is changed:
Dim r As Rectangle = FontColorButton.Rectangle
Dim g As Graphics = CreateGraphics()
g.FillRectangle(New SolidBrush(Color.Green), r)
This is not working, not really sure why, although i am pretty sure i
am approaching it from completely wrong angle.
Any help appreciated.
Thanks
Tom
Hi i am trying to draw on top of a button on a standard toolbar. All i
want to do is draw a small rectangle on the button to represent the
selected color.
I have tried the folowing code in the toolbar's parent control, which
is fired when the selected color is changed:
Dim r As Rectangle = FontColorButton.Rectangle
Dim g As Graphics = CreateGraphics()
g.FillRectangle(New SolidBrush(Color.Green), r)
This is not working, not really sure why, although i am pretty sure i
am approaching it from completely wrong angle.
Any help appreciated.
Thanks
Tom