This is a VB.NET2005 windows mobile project. In this code:
Dim mnu As New Windows.Forms.MenuItem() '"&Test", New EventHandler(AddressOf ActionMenuItem_Click))
mnu.Text = "Test Menu"
.. the commented out bit won't compile because MenuItem only supports new with no parameters.
It seems that new MenuItem(..) does support parameters in windows but not mobile
So how can I attach an eventhandler to the new menu item so that it runs code when its clicked ?