Calling a shared function to another class in vb.net?

19,162
functest.callthis(something, something_else)
Share:
19,162
software
Author by

software

Updated on June 13, 2022

Comments

  • software
    software almost 2 years

    How to call a shared function in one class to another class , here is my code,

    Imports System.Web.UI
    
    Public Class functest
        Public Shared Function callthis(source as object, args as event)
          'code goes here
        End Function
    End Class
    

    I have to call "callthis" function in an another class. How can i do it?

  • software
    software almost 12 years
    Should i inherit the functest class in another class?