I have a toolStripMenuItem which is a menu containing other dropdown items. When DropDownItemClicked event is raised by selection one of the dropdown items I would like to consume the event if some condition is satisfied, like below:
Private Sub tsmi_DropDownItemClicked( _
ByVal sender As Object, _
ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) _
Handles tsmi.DropDownItemClicked
...
If some_condition_is_satisfied then
e.Cancel = True <------ Cancel is not available in this event!
End If
...
End Sub
The problem is that DropDownItemClicked does not provided the posibility to perform:
e.Cancel = True
So how could I consume this event?