コード例 #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
ファイル: DateControl.cs プロジェクト: renyh1013/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;
        }
コード例 #4
0
ファイル: DateControl.cs プロジェクト: renyh1013/dp2
        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;
        }