private void LoginScreen_Load(object sender, EventArgs e) { this.AcceptButton = btnLogin; // Load users from the account file into the system try { state.Users = fileManipulator.GetAllUserDetails(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error loading user accounts", MessageBoxButtons.OK, MessageBoxIcon.Error); } }