Hello,
I need to create a single (new) instance of a FORM and have that instance
available to be called from my modules and some other forms. This is how I
launch it, from <FormAnyform>
Option Explicit
Dim WithEvents frmNew as myExistingForm
---------------------------
Private Sub InitializeNewSt uff()
Set frmNew = New frmSomething
frmNew.Hide
End Function
I can't use frmSomething.Sh ow, as I normally do and need to
create an instance (to work with a UserControl and Events)
but now I cannot access frmNew form my modules...
For example frmNew.Caption= "Hello" cannot happen as
frmNew is not "public".
If I try frmSomething.Ca ption="Hello" then I launch a NEW, second
instance of frmSomething... . this is bad.
How can I set frmNew to a Global so I can just use frmNew after it
is created throughout my program?
Thanks
-stone
because of a UserControl and requirement of RaiseEvents)
I need to create a single (new) instance of a FORM and have that instance
available to be called from my modules and some other forms. This is how I
launch it, from <FormAnyform>
Option Explicit
Dim WithEvents frmNew as myExistingForm
---------------------------
Private Sub InitializeNewSt uff()
Set frmNew = New frmSomething
frmNew.Hide
End Function
I can't use frmSomething.Sh ow, as I normally do and need to
create an instance (to work with a UserControl and Events)
but now I cannot access frmNew form my modules...
For example frmNew.Caption= "Hello" cannot happen as
frmNew is not "public".
If I try frmSomething.Ca ption="Hello" then I launch a NEW, second
instance of frmSomething... . this is bad.
How can I set frmNew to a Global so I can just use frmNew after it
is created throughout my program?
Thanks
-stone
because of a UserControl and requirement of RaiseEvents)
Comment