VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Fool Proof Edit Box(Textbox) Input Validation and Functionality Extension Through Subclassing

by Eduardo B. Manuel Jr. (2 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

This code enhances input validation in real time instead of waiting for the user to press a button(Ok or Submit or whatever...). With this code you can limit the user input to whatever type you want(Whole Number, Fractional Number, Uppercase...).This also provides a way to optionally notify a user when an input error is being made while typing or pasting. Besides that, other features that are not available in VBs wrapper are exposed to developers. Discover for yourselves through your object browser. This class can also be attached to controls that have an Edit box constituent(like Comboboxes and Grids). Please vote for this code if you find it useful. And please comment.

Inputs
Textbox control or Handle to an Editbox control Style Type Input Restriction
Assumes
There are 3 other files that must be added to a project before the class can be implemented. The core procedures/functions needed by this class is located in a module(modWinMsgs.bas) and the class module file itself (clsETxt.cls). The other two files(Isubclass.cls and subclass.bas) are from VBAccelerator.com. It is used for subclassing. If you reference the dll file ssubtmr6.dll, you don’t need to add these two files. Two sample project files are included in this submission. One demonstrates how to use this class on textboxes and comboboxes and the other is a simple database program that shows how to use the class in a dbgrid.
Code Returns
Formatted Value Value see purpose...
API Declarations
A lot

Rate Fool Proof Edit Box(Textbox) Input Validation and Functionality Extension Through Subclassing

Upload

Download this snippet    Add to My Saved Code

Fool Proof Edit Box(Textbox) Input Validation and Functionality Extension Through Subclassing Comments

No comments have been posted about Fool Proof Edit Box(Textbox) Input Validation and Functionality Extension Through Subclassing. Why not be the first to post a comment about Fool Proof Edit Box(Textbox) Input Validation and Functionality Extension Through Subclassing.

Post your comment

Subject:
Message:
0/1000 characters