E
excelleinc.com
Hello,
I'm trying to put sub that's shared between all forms in my app in module so
when I make change I just change it one time.
This sub should execute and then invoke sub defaults() that's different for
each form and is contained within the forms. You'll probably ask why don't I
just put it in the form after the call to module.function, well it's a
handler for one combobox so technically I don't call it.
I made a reference to mainform form and then did
Module sharedFunction
Friend Sub cbo_KeyUp(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.KeyEventArgs)
'do something
frmMainForm.ActiveMdiChild.Defaults()
End Function
End Module
but I'm getting error message in Visual Studio .Net "C:\Visual
Studio\blabla\functions.vb(267): 'Defaults' is not a member of
'System.Windows.Forms.Form'."
the program executes ok and it does call sub properly but every time I want
to recompile I'm getting build error warning.
btw... sub name (Defaults) is same on each of the forms.
Thanks in advance ...
I'm trying to put sub that's shared between all forms in my app in module so
when I make change I just change it one time.
This sub should execute and then invoke sub defaults() that's different for
each form and is contained within the forms. You'll probably ask why don't I
just put it in the form after the call to module.function, well it's a
handler for one combobox so technically I don't call it.
I made a reference to mainform form and then did
Module sharedFunction
Friend Sub cbo_KeyUp(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.KeyEventArgs)
'do something
frmMainForm.ActiveMdiChild.Defaults()
End Function
End Module
but I'm getting error message in Visual Studio .Net "C:\Visual
Studio\blabla\functions.vb(267): 'Defaults' is not a member of
'System.Windows.Forms.Form'."
the program executes ok and it does call sub properly but every time I want
to recompile I'm getting build error warning.
btw... sub name (Defaults) is same on each of the forms.
Thanks in advance ...