VB.Net - Call a Sub with events

前端 未结 3 1803
北恋
北恋 2021-01-27 05:35

Is it possible to Call a Sub with events?

I have the following sub, and when I press a button, I will trigger a Msgbox.

Public Class SelectLevel

    Pub         


        
3条回答
  •  故里飘歌
    2021-01-27 05:54

    You need to pass the parameters too.

    This should work:

    Public Class TestClass
    
        Private Sub Testing
            Call SelectLevel.Button_Start_Click(Nothing, System.EventArgs.Empty)
        End Sub
    
    End Class
    

提交回复
热议问题