the dissapearance of button and image slide after click on firstSlide button

gametaka

New member
Joined
Mar 14, 2016
Messages
2
Programming Experience
Beginner
when i click on the firstSlide button, the button and imageslide dissapear and show the video only.

here is the GUI of the form

form1.jpg

this is what happen when i press the first slide button.

onlyvideonobutton.jpg

and here is the code for the c#

C#:
private void playvideo()
        {
            try
            {
                if (!playing)
                {
                    ourVideo = new Video("C:\\Users\\Student\\Desktop\\wevideoproject\\wevideoproject\\FIFA 16 - Play Beautiful - Official TV Commercial.mp4", true);
                    ourVideo.Owner = panel1;
                    ourVideo.Play();
                    //adjust videofile 
                    ourVideo.Size = new Size(336, 177);
                    //panel1.Width = Width;
                    playing = true;
                }
                else
                {
                    ourVideo.Play(); 
                }
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

        }

        private void btnFirst_Click(object sender, EventArgs e)
        {
            firstSlide();
            playvideo();
        }
 
C#:
        private void firstSlide()
        {
            Image firstImage = Image.FromFile(@"C:\Users\Student\Desktop\wevideoproject\wevideoproject\slide image\Slide1.JPG");
            pictureBox1.Image = firstImage;
        }
 
Back
Top Bottom