I have a custom control called NumberBox containing a label, a textbox and a combobox. It works fine, I have added it to my toolbox and used it on multiple forms.
Now I want to use a subroutine in a module to validate some of the instances of the custom control, but I find that when I use
Dim cntrl1 as Numberbox I get an error that Numberbox is not defined. In fact I get the same result in the code section of the form on which it occurs.
What should I have done to expose the control, its methods and properties.
Now I want to use a subroutine in a module to validate some of the instances of the custom control, but I find that when I use
Dim cntrl1 as Numberbox I get an error that Numberbox is not defined. In fact I get the same result in the code section of the form on which it occurs.
What should I have done to expose the control, its methods and properties.