Several component events going to the same Sub...

  • Thread starter Thread starter nobody
  • Start date Start date
N

nobody

Below I just added the click events after the "Handles"
keyword. Is there a way to do this from the IDE?

****************
Private Sub MenuItem35_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem35.Click, MenuItem36.Click,
MenuItem37.Click

If sender Is MenuItem35 Then
language = Globals.Keyboard.German
ElseIf sender Is MenuItem36 Then
language = Globals.Keyboard.Italian
ElseIf sender Is MenuItem37 Then
language = Globals.Keyboard.French
End If

End Sub
 
* nobody said:
Below I just added the click events after the "Handles"
keyword. Is there a way to do this from the IDE?

AFAIK no.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top