System.Windows.Forms.Control.OnValidated(System.EventArgs)

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

3 Examples 7

1. Example

Project: EDDiscovery
Source File: TextBoxBorder.cs
private void Textbox_Validated(object sender, EventArgs e)
        {
            base.OnValidated(e);
        }

2. Example

Project: StackBuilder
Source File: FileSelect.cs
protected override void OnValidated(EventArgs e)
            {
                owner.EndEditCurrentFile();
                base.OnValidated(e);
            }

3. Example

Project: InnovatorAdmin
Source File: FilePathControl.cs
protected override void OnValidated(EventArgs e)
    {
      base.OnValidated(e);
      // Not sure why this is needed, but it works.
      foreach (var binding in this.DataBindings.OfType<Binding>().Where(b => b.PropertyName == "Text"))
      {
        binding.WriteValue();
      }
    }