Ejemplo n.º 1
0
        private void pictureBox1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                this.oldvalue = this.value;

                ValueDlg vdlg = new ValueDlg(this.value, this.np);

                if (vdlg.ShowDialog() == DialogResult.OK)
                {
                    Application.DoEvents();
                    this.value = vdlg.Value;

                    // Hack to make sure the valuechanged event is fired
                    this.Value = this.value;
                }
                Application.DoEvents();
            }

            base.OnMouseDoubleClick(e);
        }
Ejemplo n.º 2
0
        private void pictureBox1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                this.oldvalue = this.value;
           
                ValueDlg vdlg = new ValueDlg(this.value, this.np);

                if (vdlg.ShowDialog() == DialogResult.OK)
                {
                    Application.DoEvents();
                    this.value = vdlg.Value;

                    // Hack to make sure the valuechanged event is fired
                    this.Value = this.value;
                }
                Application.DoEvents();
            }

            base.OnMouseDoubleClick(e);
        }