.NET Framework Class Library
PictureBox.CausesValidation Property
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Overrides the Control.CausesValidation property.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Syntax
Visual Basic
<BrowsableAttribute(False)> _ Public Property CausesValidation As Boolean
C#
[BrowsableAttribute(false)] public bool CausesValidation { get; set; }
Visual C++
[BrowsableAttribute(false)] public: property bool CausesValidation { bool get (); void set (bool value); }
F#
[<BrowsableAttribute(false)>] member CausesValidation : bool with get, set
Property Value
Type: System.Booleantrue if the control causes validation to be performed on any controls requiring validation when it receives focus; otherwise, false. The default is true.
Version Information
.NET Framework
Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0.NET Framework Client Profile
Supported in: 4, 3.5 SP1Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also
Reference
Community Content
tswaters
This doesn't work?
I'm trying to get a PictureBox to have a validating event -- i.e.:
AddHandler PictureBox1.Validating, AddressOf ValidateImage
But I find this isn't working... also "CausesValidation" doesn't seem to be a property on PictureBox.
One can set it like so,
CType(picPreview, Windows.Forms.Control).CausesValidation = True
But this still doesn't raise the ValidateImage event.
AddHandler PictureBox1.Validating, AddressOf ValidateImage
But I find this isn't working... also "CausesValidation" doesn't seem to be a property on PictureBox.
One can set it like so,
CType(picPreview, Windows.Forms.Control).CausesValidation = True
But this still doesn't raise the ValidateImage event.