I've made my own custom ownerdrawn button control, inherited from the Button class itself. I draw the control all by myself in the OnPaint
override procedure, this includes painting the background of the button, drawing its borders, text and image.
I also need to incorporate the capability for the button to show an Active color border in case the button has focus, or is defined as the AcceptButton
by the parent form. For focus, I use this.ContainsFocus
to know if the button currently has focus.
How to know if my button control is defined as the default AcceptButton
on the parent form, so I can draw the active border color around it accordingly? I don't see any inherited property in the Button
class to find this out.
Thanks.