I would like to have menu items a main menu bar that represent the days
of the week. When you click on them they alternate from checked to
unchecked. Right now I have 7 subs that look like this one:
Private Sub SunMenuItem_Cli ck(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles SunMenuItem.Cli ck
If SunMenuItem.Che cked Then
SunMenuItem.Che cked = False
Else
SunMenuItem.Che cked = True
End If
End Sub
I would like to use the same sub to handle all 7 menu items. How would
I write this?
of the week. When you click on them they alternate from checked to
unchecked. Right now I have 7 subs that look like this one:
Private Sub SunMenuItem_Cli ck(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles SunMenuItem.Cli ck
If SunMenuItem.Che cked Then
SunMenuItem.Che cked = False
Else
SunMenuItem.Che cked = True
End If
End Sub
I would like to use the same sub to handle all 7 menu items. How would
I write this?
Comment