Problems with openFileDialog and pictureBox's Please Help!

Discussion in 'C#' started by Umee001, Aug 28, 2010.

  1. Umee001

    Umee001 New Member

    Aug 28, 2010
    Likes Received:
    Trophy Points:
    Hello all im new to prgramming and ive gotten to a dead end where im hoping some of you people can help me!

    Basically i am trying to make a media player that opens pictures audio and video into seperate forms, so i have 4 forms main form where i have used an openFileDialog to select file types, the openFileDialog is excecuted from a menuStrip which has the 3 video pictures and audio options.

    What i am stuck on is the pictures part i have managed to get the openFileDialog to open and be flitered to jpeg and bitmaps etc and once a picture file is selected ive managed to open the pictures form where i want the picture to open into a picture box on that particular formmy problem is exactly that trying to get the picture open into that form and into that picturebox.

    I have got the following code so far:

    private void pictureToolStripMenuItem_Click(object sender, EventArgs e)
    String Chosen_File = "";

    ofSelectMedia.InitialDirectory = "C:";
    ofSelectMedia.Title = "Select An Image";
    ofSelectMedia.FileName = "";

    Chosen_File = ofSelectMedia.FileName;

    frmPictureViewer frmMediaPlayer = new frmPictureViewer();
    Please help! :(

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