Exemple #1
0
        private void reminder_Function()
        {
            TimeSpan     ts            = DateTime.Now - time;
            ReminderForm reminder_form = new ReminderForm();

            reminder_form.StartPosition = FormStartPosition.Manual;
            reminder_form.Location      = new Point(Screen.PrimaryScreen.WorkingArea.Width - reminder_form.Width,
                                                    Screen.PrimaryScreen.WorkingArea.Height - reminder_form.Height);
            reminder_form.TopMost = true;
            reminder_form.Show();
        }
Exemple #2
0
        private void reminder_Function()
        {
            ts = DateTime.Now - time;

            ReminderForm reminder_form = new ReminderForm();

            reminder_form.StartPosition = FormStartPosition.Manual;
            //reminder_form.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - reminder_form.Width,
            //                      Screen.PrimaryScreen.WorkingArea.Height - reminder_form.Height);
            reminder_form.Location = new Point(Screen.FromPoint(reminder_form.Location).WorkingArea.Right - reminder_form.Width - 10, 10);
            // reminder_form.Location
            reminder_form.TopMost = true;
            reminder_form.Show();
        }