Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void button1_Click(object sender, EventArgs e)
- {
- SpiralForm spiral = new SpiralForm();
- spiral.MdiParent = this;
- spiral.Show();
- MyTimer = new System.Timers.Timer();
- MyTimer.Interval = 1000;
- MyTimer.Elapsed += new System.Timers.ElapsedEventHandler(myTimer_Elapsed);
- MyTimer.Start();
- }
- void myTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
- {
- if (++counter == 30)
- {
- //do pic
- // MessageBox.Show("30sec!!");
- TextShowForm textShow = new TextShowForm();
- textShow.MdiParent = this;
- textShow.Show(); =>doesn't work at this time.
- }
- }
- private void button2_Click(object sender, EventArgs e)
- {
- // TextShowForm textShow = new TextShowForm();
- // textShow.MdiParent = this;
- // textShow.Show(); =>works with button click
- // textShow.Activate();
- }
- }
Add Comment
Please, Sign In to add comment