private void ResetFormControl()
        {
            StudentNameTextBox.Clear();
            AgeTextBox.Clear();
            GenderTextBox.Clear();
            DescriptionTextBox.Clear();
            IdPictureBox.Dispose();

            StudentNameTextBox.Focus();

            if (this.IsUpdate)
            {
                this.StudentId       = 0;
                this.IsUpdate        = false;
                SaveButton.Text      = "Save User Information";
                DeleteButton.Enabled = false;
                ViewStudentForm vsf = new ViewStudentForm();
                //vsf.LoadDataIntoDataGridView();
                vsf.StudentDataGridView.Refresh();
            }
        }
 private void ClearPictureButton_Click(object sender, EventArgs e)
 {
     IdPictureBox.Image = null;
     IdPictureBox.Update();
     GC.Collect();
 }