I have an extension of the winforms TabControl, it's draws an X on each tab to allow the user to close the tab.
Compare that to the standard:
How can I simulate button look&feel on that image? What I mean is, when the user clicks down, it should visually indicate that. A button does this with an inset image. For bonus points, I'd like to do the hover part, too - where the image will "light up" whn the mouse hovers.
But the X isn't a button, and it's not PictureBox control. It's not a control at all. 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? (and another for the hover).
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.