示例#1
0
        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;
        }
示例#2
0
文件: DateControl.cs 项目: zszqwe/dp2
        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;
        }
示例#3
0
        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;
        }
示例#4
0
        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;
        }