WinForms: How do I simulate button behavior on an image?
- by Cheeso
I have an extension of the winforms TabControl, it's draws an X on each tab to allow the user to close the tab.
How can I similate button look&feel on that image? It's not a button, it's not even an image control. It's just been drawn there.
Is there a way to draw an inset border on MouseDown and Raised on MouseUp? Would I be better off generating another image, for the "inset" phase?
anyone done this before?
Related: Simulate Winforms Button Click Animation
But this question is different because he actually has a PictureBox control. I don't.