SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
This sample illustrates input validation.
The source code is located at C:\Program Files (x86)\Softelvdm\SftMask OCX 7.0\Samples\Visual Studio - VB.NET\Sample4\Form1.vb or C:\Program Files\Softelvdm\SftMask OCX 7.0\Samples\Visual Studio - VB.NET\Sample4\Visual Studio - VB.NET\ (on 32-bit Windows versions).
Private Sub buttonCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles buttonCancel.Click Application.Exit() End Sub Private Sub buttonOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles buttonOK.Click If axSftMaskName.Contents.Valid And _ axSftMaskCompany.Contents.Valid And _ axSftMaskZIP.Contents.Valid And _ axSftMaskTelephone.Contents.Valid And _ axSftMaskDate.Contents.Valid And _ axSftMaskAmount.Contents.Valid Then ' save the data Application.Exit() ' and exit Else MessageBox.Show("There are validation errors - Please correct the data entered.") End If End Sub Private Sub axSftMaskZIP_CustomValidation(ByVal sender As Object, ByVal e As AxSftMaskLib70._ISftMaskEvents_CustomValidationEvent) Handles axSftMaskZIP.CustomValidation If axSftMaskZIP.Text <> "11111" Then e.cancel = True End If End Sub