title: How to reload or refresh Windows Form into original state?
body: <p>How to reload or refresh the Windows Form into original state? i have used this.Refresh();,this.Invalidate();,form.Refresh(),form.Invalidate()</p>
  
  <pre><code>private void AdduserBtn_Click_1(object sender, EventArgs e)
  {
      UserManagement obj = new UserManagement ();
      obj.CourseCategoryId = (int) CourseRegCbox.SelectedValue;
      obj.IDNumber = IDNumberTbox.Text;
      obj.Password = PasswordRegTbox.Text;
      obj.FName = FnameRegTbox.Text;
      obj.LName = LnameRegTbox.Text;
      obj.Gender = GenderTbox.Text;
      obj.Email = EmailRegTbox.Text;
      obj.PhoneNumber = PhonenumberRegTbox.Text;
      obj.Address = AddressRegTbox.Text;
  
      if ( UserManagement != null &amp;&amp; UserManagement.Id &gt; 0 )
      {
          obj.Id = UserManagement.Id;
          if ( UserManagement.UserInfo_Update (obj) &gt; 0 )
          {
              MessageBox.Show ("Record Succesfully Updated!");
              UserInfoForm form = new UserInfoForm ();
              form.Refresh ();
          }
          else
          {
              MessageBox.Show ("An error occured!");
          }
      }
      else
      {
          if ( UserManagement.UserInfo_Insert (obj) &gt; 0 )
          {
              MessageBox.Show ("Record Succesfully Added!");
              UserInfoForm form = new UserInfoForm ();
              form.Refresh ();
  
          }
          else
          {
              MessageBox.Show ("An error occured!");
          }
      }
  }
  </code></pre>
  
  <p>I just want to reload the form into original state once the data properly save or updated.</p>