private void ToDoNote_Load_1(object sender, EventArgs e) { RepeatCB.SelectedIndex = 0; if (string.IsNullOrWhiteSpace(FHoursCB.Text)) { THoursCB.SelectedIndex = 0; TMinutesCB.SelectedIndex = 0; FHoursCB.SelectedIndex = 0; FMinutesCB.SelectedIndex = 0; } try { NoteData.Connect(); } catch { MessageBox.Show("Lỗi hiển thị. Vui lòng thử lại sau.", "Báo Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } ToDtpk.Value = FromDtpk.Value; }