Hi there !
How can we declere event for MenuItem array ?
Dim CustomMenuItems(10) As System.Windows.Forms.MenuItem
if I write
1)
WithEvents CustomMenuItems() As System.Windows.Forms.MenuItem
It says that "withevents cannot be typed as arrays"
2) Even if I write it as
WithEvents CustomMenuItems(0) As System.Windows.Forms.MenuItem
then also I get the same error.
Can anyone help me how can I trap the "click event" when a menu Item is clicked ?
How can we declere event for MenuItem array ?
Dim CustomMenuItems(10) As System.Windows.Forms.MenuItem
if I write
1)
WithEvents CustomMenuItems() As System.Windows.Forms.MenuItem
It says that "withevents cannot be typed as arrays"
2) Even if I write it as
WithEvents CustomMenuItems(0) As System.Windows.Forms.MenuItem
then also I get the same error.
Can anyone help me how can I trap the "click event" when a menu Item is clicked ?