Answer the question
In order to leave comments, you need to log in
C# (WinForms) - How to put the desired image on click?
Hello! Wrote a program in C#(WinForms), and came across a problem: There are two forms. On the first form there is a button, when this button is pressed, the second form opens, where there are about 70 images. It is necessary to make it so that when you click on the desired image, the button turns into this image (I wanted to do this: under the button there is an empty image of the same width, and when you click on the desired image, the button is deleted, and that empty image becomes necessary for the user). Question: How can this be implemented? Thanks in advance!
Answer the question
In order to leave comments, you need to log in
And what's the problem with using not a button, but a button image?
Clicked on the image of the button, your new form opened, selected the image with which and replaced the image of the button.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question