Media Player

Gismo-Tron

New member
Joined
May 23, 2007
Messages
1
Programming Experience
Beginner
Hey,

I'm currently making a program that handles media; video and audio.

I have a menu strip with two things on it: Add media, Find media.
3 text boxes, which displays list position, name of video/audio and then the filename.
And finally a windows media player below the text boxes.

If i click on 'Add media' then i can add a movie or audio file to a listbox in another form.

If i click on 'Find media' then my listbox (in the other form) with the current list of media files which have been added will be displayed, i can then click on one of these and the file will be played.

What i want to be able to do is what i have above and for my program to do the same with images (add them to a list, view current images available for selection and to be able to select them for viewing from the list)...

but i have no idea how to create a image viewer and media player in one program, please help someone

Gismo
 
When I created a image viewer in the past, I always just created a control that had a picture box on panel.

Make sure to set the AutoScroll feature to true on the panel. Set the view mode of the picture box to stretch.

Have a property on the control to set the image.
VB.NET:
Dim _Image as System.Drawing.Image
    Public Property Myimage() as System.Drawing Image
        Get
_Image
        End Get
        Set(ByVal Value as System.Drawing.Image)
            myImage.FromFile("C:\myimage.jpg")
picturebox1.Image = myImage
picturebox1.width = Myimage.Width
PictureBox1.Height = myimage.height
        End Set
    End Property

This will display your image at it's normal size allowing scroll bars if it exceeds the panel size. I hop this helps
 
Back
Top