so to an assign an image to a button I wrote this:
private void ButtonGeode_Click(object sender, EventArgs e)
{
ButtonGeode.Image = Image.FromFile("C:\\Users\\Ayesha Mirza\\Desktop\\OOP III\\Customize Menu Back\\CardBack\\blue geode.png")
}
does this make sense?
I want the user to select an image by clicking the button and then clicking select that will close the form. I have the images in a separate folder that I have added as a picturebox and they are added above their respected button. So what I am trying to do is create an if-else statement, where...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.