when i click on the firstSlide button, the button and imageslide dissapear and show the video only.
here is the GUI of the form
this is what happen when i press the first slide button.
and here is the code for the c#
here is the GUI of the form
this is what happen when i press the first slide button.
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();
}