Hi
I've created my own toolbar bar control by inheriting the Windows.Forms.Toolbar control to perform some OnPaint() drawing (having set the SetStyle to UserPaint).
However when I add the control to a form and programmatically add buttons they appear invisible - although respond to mouse clicks. If I turn off the UserPaint SetStyle they reappear.
Does anyone know what I'm missing here? Pointers much appreciated,
David.
I've created my own toolbar bar control by inheriting the Windows.Forms.Toolbar control to perform some OnPaint() drawing (having set the SetStyle to UserPaint).
However when I add the control to a form and programmatically add buttons they appear invisible - although respond to mouse clicks. If I turn off the UserPaint SetStyle they reappear.
Does anyone know what I'm missing here? Pointers much appreciated,
David.