T
T
Tony13372017-06-06 16:55:31
Images
Tony1337, 2017-06-06 16:55:31

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

2 answer(s)
P
Peter, 2017-06-06
@petermzg

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.

W
WayMax, 2017-06-08
@WayMax

You don't know how to google?
The first link is https://stackoverflow.com/questions/11487901/how-d...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question