Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Private Sub MenuItem0_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles MenuItem0.DrawItem
       Mn_DrawItem(e, MenuItem0.Text)
   End Sub

   Private Sub MenuItem0_MeasureItem(ByVal sender As Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles MenuItem0.MeasureItem
       Mn_MeasureItem(e, MenuItem0.Text)
   End Sub


Private Sub MenuItem1_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles MenuItem1.DrawItem
       Mn_DrawItem(e, MenuItem1.Text)
   End Sub
   Private Sub MenuItem1_MeasureItem(ByVal sender As Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles MenuItem1.MeasureItem
       Mn_MeasureItem(e, MenuItem1.Text)
   End Sub

 

For each Menu Item i have to write code like this. If i delete the menu item then have to remove drawitem and measureitem for that menu. It is very tedious. Is there any easy way out. Any help will be appreciated.

Thanks & Regards,

zy_abc

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...