gbmcneil
asked on
VB.NET Can't See Subroutine (Beginner Question)
Hey, I'm new to VB.NET.
I have a form where a menu entry is trying to call a subroutine in another file.
I created a Class file with the contents as follows -
Imports Microsoft.VisualBasic
Public Class CodeFile1
Public Sub InitializeSymbolLoad()
Stop
Return
End Sub
End Class
No matter what I do, I can't "see" the Sub InitializeSymbolLoad from the form.
Pretty basic, I know. Maybe I shouldn't put the routine in a "Class".
Any suggestions?
I have a form where a menu entry is trying to call a subroutine in another file.
I created a Class file with the contents as follows -
Imports Microsoft.VisualBasic
Public Class CodeFile1
Public Sub InitializeSymbolLoad()
Stop
Return
End Sub
End Class
No matter what I do, I can't "see" the Sub InitializeSymbolLoad from the form.
Pretty basic, I know. Maybe I shouldn't put the routine in a "Class".
Any suggestions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No worries! As long as you got it sorted out = )
ASKER
Yes, I combined the keyword "Shared" in my subroutine with the CodeFile1.InitializeSymbol Load() call.
ASKER
Thanks very much for your help.