System.Windows.Forms.DateTimePicker.OnValueChanged(System.EventArgs)

Here are the examples of the csharp api class System.Windows.Forms.DateTimePicker.OnValueChanged(System.EventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

6 Examples 7

1. Example

Project: OpenLiveWriter
Source File: DateTimeHelper.cs
View license
protected override void OnValueChanged(EventArgs eventargs)
        {
            lastTimeChangedWasChecked = Checked;
            base.OnValueChanged(eventargs);
        }

2. Example

View license
protected override void OnValueChanged(EventArgs eventargs)
    {
      // Notify the DataGridView that the contents of the cell
      // have changed.
      valueChanged = true;
      this.EditingControlDataGridView.NotifyCurrentCellDirty(true);
      base.OnValueChanged(eventargs);
    }

3. Example

Project: SqlNexus
Source File: fmParameters.cs
View license
protected override void OnValueChanged(EventArgs eventargs)
        {
            // Notify the DataGridView that the contents of the cell
            // have changed.
            valueChanged = true;
            this.EditingControlDataGridView.NotifyCurrentCellDirty(true);
            base.OnValueChanged(eventargs);
        }

4. Example

View license
protected override void OnValueChanged(EventArgs eventargs)
        {
            // Notify the DataGridView that the contents of the cell 
            // have changed.
            valueChanged = true;
            EditingControlDataGridView.NotifyCurrentCellDirty(true);
            base.OnValueChanged(eventargs);
        }

5. Example

Project: SystemEx
Source File: DateTimePicker.cs
View license
private void SetToDateTimeValue()
        {
            if (_isNull)
            {
                SetFormat();
                _isNull = false;
                OnValueChanged(EventArgs.Empty);
            }
        }

6. Example

Project: SystemEx
Source File: DateTimePicker.cs
View license
protected override void WndProc(ref Message m)
        {
            switch (m.Msg)
            {
                case Win32.NativeMethods.WM_NOTIFY:
                    if (_isNull)
                    {
                        NMHDR nm = (NMHDR)m.GetLParam(typeof(NMHDR));
                        Console.WriteLine(nm.Code);
                        if (nm.Code == -746 || nm.Code == -722 || nm.Code == -949)  // DTN_CLOSEUP || DTN_?
                        {
                            SetToDateTimeValue();
                            OnValueChanged(EventArgs.Empty);
                        }
                    }
                    break;

                case Win32.NativeMethods.WM_ERASEBKGND:
                    var g = Graphics.FromHdc(m.WParam);
                    g.FillRectangle(_backgroundBrush, ClientRectangle);
                    g.Dispose();
                    return;
            }

            base.WndProc(ref m);
        }