Problem with VBPJ code. (WithEvents)
Posted on 1998-06-25
In the last Visual Basic Programmer's Journal (July), there is an article Titled Resize your forms automatically. At the beginning of the article the talk about making an extended textbox class. This is definitely a cool thing to due because the textbox control is lacking in several areas.
Now the problem:
in the declarations section I have the line
Private Numbox as new ExtenededTextbox
then in the Form_Load event I have the line
Set numbox.textbox = txtNumeric
On this line I get an textbox Method failed error.
My ExtendedTextbox is not exactly the same as what is shown in the VBPJ. It contains code to due several types of validation depending on the Type that you set it to. It also has an errorcolor for when someone screws up entering in the data and it does not meet the validation rules, but it still follows the same principal. So can someone help me. If needed I can paste in the full code of the ActiveX DLL.