/*---Time 5---*/ private void Timer_5_Tick(object sender, EventArgs e) { pic_car_v2.Location = new Point(pic_car_v2.Location.X, pic_car_v2.Location.Y + 10); if (pic_car_v2.Location.Y > 340) { Timer_5.Stop(); pic_car_v2.Image = new Bitmap(Application.StartupPath + "\\picture\\123.png"); pic_car_v3.Visible = true; Timer_6.Start(); } }
/*---------OUT----------*/ /*---Time 4---*/ private void Timer_4_Tick(object sender, EventArgs e) { pic_car_v2.Location = new Point(pic_car_v2.Location.X, pic_car_v2.Location.Y - 10); if (pic_car_v2.Location.Y < 284) { pic_car_v2.Image = new Bitmap(Application.StartupPath + "\\picture\\er.png"); Set_out(txt_vitri.Text); Timer_4.Stop(); Timer_5.Start(); } }