Pretty much what the title says. Not much else I can add!
I’m using Windows Form Application.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can pretty much write one simply by inherit Control, a couple of properties and then draw your image using the Paint event of the control.
I write this example as a basic control. It is attributed with defaults etc., but i wrote it in VB and translated to C# so no guarantee that everything work at first attempt.
You will still need to implement various error checks and so forth. The control stretches whatever image you define for it. If no image is defined it reverts to a default color.
Update: Added property to also allow revealing of image.
Use it for anything; modify as needed (original VB source below for this interested):
Original VB source: