//it is a good idea to use the 'sender' object when calling the form load method
//because doing so will let you determine if the sender was a button click or something else...
private void button2_Click(object sender, EventArgs e)
{
//you may want to reset any global variables or any other
//housekeeping before calling the form load method
Form1_Load(sender, e);
}
private void Form1_Load(object sender, EventArgs e)
{
if (sender is Button)
{
//the message box will only show if the sender is a button
MessageBox.Show("You Clicked a button");
}
}
Application.Restart()。それは – Burimi
を解決するかもしれませんが、それは、投稿が避けようとしていたものであるちらつき(閉じて、フォームを開く)を表示します。ヌル、ヌル( ます。private void Grafik_Load(オブジェクト送信者、EventArgsの電子) { .... } しかし、私は正しい構文が – Sandy