Here are the examples of the csharp api class System.Windows.Forms.Control.OnValidating(System.ComponentModel.CancelEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
11 Examples
0
1. Example
Project: EDDiscovery
Source File: TextBoxBorder.cs
Source File: TextBoxBorder.cs
private void Textbox_Validating(object sender, System.ComponentModel.CancelEventArgs e) { base.OnValidating(e); }
0
2. Example
Project: NClass
Source File: BorderedTextBox.cs
Source File: BorderedTextBox.cs
private void textBox_Validating(object sender, CancelEventArgs e) { OnValidating(e); }
0
3. Example
Project: NClass
Source File: BorderedTextBox.cs
Source File: BorderedTextBox.cs
private void textBox_Validating(object sender, CancelEventArgs e) { OnValidating(e); }
0
4. Example
Project: ipaddresscontrollib
Source File: FieldControl.cs
Source File: FieldControl.cs
protected override void OnValidating( CancelEventArgs e ) { if ( !Blank ) { if ( Value < RangeLower ) { Text = RangeLower.ToString( CultureInfo.InvariantCulture ); } } base.OnValidating( e ); }
0
5. Example
Project: ipaddresscontrollib
Source File: FieldControl.cs
Source File: FieldControl.cs
protected override void OnValidating( System.ComponentModel.CancelEventArgs e ) { base.OnValidating( e ); if ( !Blank ) { if ( Value < RangeLower ) { Text = RangeLower.ToString( CultureInfo.InvariantCulture ); } } }
0
6. Example
Project: ipaddresscontrollib
Source File: FieldControl.cs
Source File: FieldControl.cs
protected override void OnValidating( System.ComponentModel.CancelEventArgs e ) { base.OnValidating( e ); if ( !Blank ) { if ( Value < RangeLower ) { Text = RangeLower.ToString( CultureInfo.InvariantCulture ); } } }
0
7. Example
Project: ipaddresscontrollib
Source File: FieldControl.cs
Source File: FieldControl.cs
protected override void OnValidating( System.ComponentModel.CancelEventArgs e ) { base.OnValidating( e ); if ( !Blank ) { if ( Value < RangeLower ) { Text = RangeLower.ToString( CultureInfo.InvariantCulture ); } } }
0
8. Example
Project: ipaddresscontrollib
Source File: FieldControl.cs
Source File: FieldControl.cs
protected override void OnValidating(System.ComponentModel.CancelEventArgs e) { base.OnValidating(e); if (!Blank) { if (Value < RangeLower) { Text = RangeLower.ToString(CultureInfo.InvariantCulture); } } }
0
9. Example
Project: ipaddresscontrollib
Source File: FieldControl.cs
Source File: FieldControl.cs
protected override void OnValidating(System.ComponentModel.CancelEventArgs e) { base.OnValidating(e); if (!Blank) { if (Value < RangeLower) { Text = RangeLower.ToString(CultureInfo.InvariantCulture); } } }
0
10. Example
Project: SystemEx
Source File: SimpleNumericTextBox.cs
Source File: SimpleNumericTextBox.cs
protected override void OnValidating(CancelEventArgs e) { Value = Parse(Text); base.OnValidating(e); }
0
11. Example
Project: dp2
Source File: UniverseNumberTextBox.cs
Source File: UniverseNumberTextBox.cs
protected override void OnValidating(System.ComponentModel.CancelEventArgs e) { base.OnValidating(e); string strError = ""; int nRet = ValidateNumberListString(this.Text, out strError); if (nRet == -1) { MessageBox.Show(this.Parent, string.IsNullOrEmpty(this.ValidateWarningFormat) == true ? strError : string.Format(this.ValidateWarningFormat, strError, this.Text)); e.Cancel = true; } }