Original Post
Hi! I'm trying to create my own custom button but I just ran into a couple of problems. The button is an image button with different images for different states, and the images should be able to be transparent. I've tried a couple of approaches, but none of them works the way I want. A - Inherit from Control This method works ok except it doesn't handle tabbing away from the control right. B - Inherit from Button I override onpaint to prevent it from painting the normal button look, but then I loose the Paint event.. and I'm not able to call it from onpaint either C - Inherit from ButtonBase I don't know why, but this approach crashes in OnPaint :/ any suggestions?