I want to make some custom controls, with images as buttons. I don't want images ON buttons - I want to totally replace the button with an image read from a file. Is it possible?
相关问题
- Views base64 encoded blob in HTML with PHP
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- How to get the background from multiple images by
- Why am I getting UnauthorizedAccessException on th
You can use the
PictureBox
control and use theClick
event on it to handle clicks.You could use the image in the Button's
BackgroundImage
and change theFlatStyle
to flat, and the colors ofFlatAppearance
MouseDownBackColor
&MouseOverBackColor
to transparent. It should look the same as a normal picture/picturebox with properties and events of aButton
.