I am having a few problems with an ActiveX DLL that I have done (one of my first experiments) with VB5 Professional.
I have created a class (HaroldsClass) in the DLL, in which I instantiate a form, as follows:
Private haroldsform As Form1
Set haroldsform = New Form1
I have placed a commandbutton and a textbox on the form, and attached the following code:
Private Sub CommandOK_Click()
HaroldsClass.NewText = Text1.Text
NewText is a public property (Get/Let) of HaroldsClass.
Now I would expect that the Haroldsclass property addressed in HaroldsForm above would be recognised by the form, as the form was itself created in Haroldsclass. But no matter what I do, I cannot get any of my public Haroldsclass properties recognised within the bounds of the form Haroldsform.
HELP!! What am I doing wrong??
Anwsers with code much appreciated, please.