private void button1_Click(object sender, EventArgs e) { MessageBox.Show("OK"); } private void Form1_Load(object sender, EventArgs e) { button1_Click(sender, e); }