C
cj
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 MonMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MonMenuItem.Click
If SunMenuItem.Checked Then
SunMenuItem.Checked = False
Else
SunMenuItem.Checked = 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 MonMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MonMenuItem.Click
If SunMenuItem.Checked Then
SunMenuItem.Checked = False
Else
SunMenuItem.Checked = True
End If
End Sub
I would like to use the same sub to handle all 7 menu items. How would
I write this?