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\VB6\Sample4\Form1.frm or C:\Program Files\Softelvdm\SftMask OCX 7.0\Samples\VB6\Sample4\\VB6\ (on 32-bit Windows versions).
Option Explicit Private Sub buttonSave_Click() If SftMaskName.Contents.Valid And _ SftMaskCompany.Contents.Valid And _ SftMaskZIP.Contents.Valid And _ SftMaskTelephone.Contents.Valid And _ SftMaskDate.Contents.Valid And _ SftMaskAmount.Contents.Valid Then ' save the data End ' and exit Else MsgBox ("There are validation errors - Please correct the data entered.") End If End Sub Private Sub SftMaskZIP_CustomValidation(Cancel As Boolean) 'To demonstrate custom validation, this sample application only accepts the ZIP Code 11111. If SftMaskZIP.Text <> "11111" Then Cancel = True End If End Sub