pass an image from form 2 to form1

Discussion in 'C#' started by sjn21682, Sep 8, 2010.

  1. sjn21682

    sjn21682 New Member

    Joined:
    Sep 8, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi everyone!!! need some help here, im having a hard time in passing an image to another form, i have two forms (form1 i have a picturebox, in form 2 i have a combobox, a picture box and a button), when i select from my combobox a picture will be displayed in the picturebox then when i terminate my form2, what i want to happen is to display in form1 picturebox what was displayed in my form2 picturebox. please help me...
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    3
    Trophy Points:
    0
    Set a variable in form2 which can store the URL of the image and then show it in picture box when it gets focused from form1
     

Share This Page

  1. 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.
    Dismiss Notice