The CGI script is still more reliable, as it always works regardless of whether Java Script is enabled on the client-side or not; but having this extra safety barrier is a nice thing to have in place.It makes your page much more user-friendly, and takes out the frustration of having to fill out the same form repeatedly.The entire thing is done through the 'Text' property; wherein the regular 'Text' property is shadowed and one with 'Double' data type is used. The problem is, in the designer properties window, the Text property always remains readonly and its value says 'Object reference not set to an instance of an object'. My code follows: _ Public Shadows Property Text As Double Get Dim Return Value As Double Double. Text, Return Value) Return Return Value End Get Set(By Val value As Double) If Not Is Decimal Then My Base. Say Form1 has Text Box, Form1 is loaded modalessand Form2 is loaded Modaless but I want to run the Text Box Validating event.thanks,.When you submit a form to a CGI program that resides on the server, it is usually programmed to do its own check for errors. True) End If End Set End Property _ Public Shadows Property Text Align As Horizontal Alignment Get Return My Base. On Key Press(e) If Not Is Decimal Then If Not Asc(e. Handled = True Exit Sub End If End If End Sub Protected Overrides Sub On Validating(By Val e As System.
Hello, How can I trigger the On Validating event for a Text Box from another Form?
Say Form1 has Text Box, Form1 is loaded modaless and Form2 is loaded Modaless but I want to run the Text Box Validating event.
thanks, -----Original Message-----Hello, How can I trigger the On Validating event for a Text Boxfrom another Form?
In your code, define your specifications in properties setters and throw exceptions when ever it doesn't compliance to your specifications.
And use error template to display your errors to user in UI.