Link to home
Start Free TrialLog in
Avatar of gbmcneil
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?
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gbmcneil
gbmcneil

ASKER

I wrote you a long, detailed message - then lost it when I accepted your solution.

Thanks very much for your help.
No worries!  As long as you got it sorted out  = )
Yes, I combined the keyword "Shared" in my subroutine with the CodeFile1.InitializeSymbolLoad() call.