int y = 0;
public partial class Form1 : Form { public Form1() { InitializeComponent(); } int num = 0; private void timer1_Tick(object sender, EventArgs e) { num++; if (num == 100) { num = 0; timer1.Enabled = false; MessageBox.Show("Profit!"); } } } }
num = (Convert.ToInt32(textBox1.Text.ToString()));