Ejemplo n.º 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;
        }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }