private void button_findDate_Click(object sender, EventArgs e) { GetDateDlg dlg = new GetDateDlg(); dlg.Text = this.Caption; dlg.DateTime = this.Value; // dlg.StartLocation = Control.MousePosition; dlg.StartPosition = FormStartPosition.Manual; dlg.Location = this.PointToScreen( new Point(0, 0 + this.Size.Height) ); dlg.ShowDialog(this); if (dlg.DialogResult != DialogResult.OK) { return; } this.Value = dlg.DateTime; }
private void button_findDate_Click(object sender, EventArgs e) { GetDateDlg dlg = new GetDateDlg(); GuiUtil.SetControlFont(dlg, this.Font); dlg.Text = this.Caption; dlg.DateTime = this.Value; // dlg.StartLocation = Control.MousePosition; dlg.StartPosition = FormStartPosition.Manual; dlg.Location = this.PointToScreen( new Point(this.Margin.Horizontal, 4 + this.Height + this.Margin.Vertical) ); dlg.ShowDialog(this); if (dlg.DialogResult != DialogResult.OK) { return; } this.Value = dlg.DateTime; }
private void button_findDate_Click(object sender, EventArgs e) { GetDateDlg dlg = new GetDateDlg(); GuiUtil.SetControlFont(dlg, this.Font); dlg.Text = this.Caption; dlg.DateTime = this.Value; // dlg.StartLocation = Control.MousePosition; dlg.StartPosition = FormStartPosition.Manual; dlg.Location = this.PointToScreen( new Point(this.Margin.Horizontal, 4 + this.Height + this.Margin.Vertical) ); dlg.ShowDialog(this); if (dlg.DialogResult != DialogResult.OK) return; this.Value = dlg.DateTime; }
private void button_findDate_Click(object sender, EventArgs e) { GetDateDlg dlg = new GetDateDlg(); dlg.Text = this.Caption; dlg.DateTime = this.Value; // dlg.StartLocation = Control.MousePosition; dlg.StartPosition = FormStartPosition.Manual; dlg.Location = this.PointToScreen( new Point(0, 0 + this.Size.Height) ); dlg.ShowDialog(this); if (dlg.DialogResult != DialogResult.OK) return; this.Value = dlg.DateTime; }