T
tmaster
When I am typing the argument(s) of the Add method of MenuItems, one of the
options (#2 of 5) provides for 'OnClick as System.EventHandler' (as the
second arguement), which I hope is to provide a reference to the 'Handler'
sub:
mnuTopics.MenuItems.Add("DoSomething", DoSomething_Handler)
What is the corresponding sub syntax? The following is not the correct
syntax.
Private Sub mnuTopics_DoSomething_Handler(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles mnuTopics.DoSomething_Handler
Thanks
options (#2 of 5) provides for 'OnClick as System.EventHandler' (as the
second arguement), which I hope is to provide a reference to the 'Handler'
sub:
mnuTopics.MenuItems.Add("DoSomething", DoSomething_Handler)
What is the corresponding sub syntax? The following is not the correct
syntax.
Private Sub mnuTopics_DoSomething_Handler(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles mnuTopics.DoSomething_Handler
Thanks