I have a form contains a shock Wave Flash Object.I want after playing the file or in the middle of it by pressing a key another form is shown.what should I do?should I use an event? I really appreciate somebody who answer it. here the code:
private void Form1_Load(object sender, EventArgs e) {
axShockwaveFlash1.Movie = "c:/intro.swf";
axShockwaveFlash1.Forward();
axShockwaveFlash1.Play();
Form2 form2 = new Form2();
form2.Show();
}
and in form2:
private void Form2_Load(object sender, EventArgs e) {
Form1 form1 = new Form1();
form1.Close();
}
when I debug it both of them are shown but I just want form2
axShowckwaveFlash1
has an event forCompleted
orFinsihed
, subscribe to it and show the new form when its done. – Nate