Why this code in WPF does not work ?
private void button1_Click(object sender, EventArgs e) { MessageBox.Show("yes"); } private void Form1_Load(object sender, EventArgs e) { button1.PerformClick(); }
I need to command.
See Question&Answers more detail:os