private void Change_Name_Click(object sender, EventArgs e) { if (User_List.SelectedIndex == -1) { MessageBox.Show("Please select any user first"); } else { changeStatus = 1; Write_Box.Show(); name_Label.Show(); name_Label.Text = "Please Enter new first name :"; Change_button.Show(); } }
private void Change_User_Name_Load(object sender, EventArgs e) { Write_Box.Hide(); name_Label.Hide(); Change_button.Hide(); }