重新加载窗体,无需关闭和重新打开

use*_*319 10 c# winforms

我有一个用c#编写的Windows窗体应用程序.当有人按下"清除"按钮时,我想重新加载表单.但我无法实现调用Load事件.这些行也不起作用:

  this.Refresh();
  this.Load +=new EventHandler(Grafik_Load); // 'Grafik' is the name of the form.
Run Code Online (Sandbox Code Playgroud)

我该怎么办?谢谢你帮忙..

Cod*_*eld 5

将'load'代码放在一个单独的函数中,并从您自己的代码/ Load事件处理程序中调用该函数.