System.Windows.Forms.Control.OnValidating(System.ComponentModel.CancelEventArgs)

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 7

1. Example

Project: EDDiscovery
Source File: TextBoxBorder.cs
private void Textbox_Validating(object sender, System.ComponentModel.CancelEventArgs e)
        {
            base.OnValidating(e);
        }

2. Example

Project: NClass
Source File: BorderedTextBox.cs
private void textBox_Validating(object sender, CancelEventArgs e)
		{
			OnValidating(e);
		}

3. Example

Project: NClass
Source File: BorderedTextBox.cs
private void textBox_Validating(object sender, CancelEventArgs e)
		{
			OnValidating(e);
		}

4. Example

Project: ipaddresscontrollib
Source File: FieldControl.cs
protected override void OnValidating( CancelEventArgs e )
      {
         if ( !Blank )
         {
            if ( Value < RangeLower )
            {
               Text = RangeLower.ToString( CultureInfo.InvariantCulture );
            }
         }

         base.OnValidating( e );
      }

5. Example

Project: ipaddresscontrollib
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 );
            }
         }
      }

6. Example

Project: ipaddresscontrollib
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 );
            }
         }
      }

7. Example

Project: ipaddresscontrollib
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 );
            }
         }
      }

8. Example

Project: ipaddresscontrollib
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);
        }
      }
    }

9. Example

Project: ipaddresscontrollib
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);
        }
      }
    }

10. Example

Project: SystemEx
Source File: SimpleNumericTextBox.cs
protected override void OnValidating(CancelEventArgs e)
        {
            Value = Parse(Text);

            base.OnValidating(e);
        }

11. Example

Project: dp2
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;
            }
        }