PopupMenu -> upgrading issue VB6 to VB.Net
-
-
in my VB6 code the code line is like this
PopupMenu mnuAddDeleteItems
upgrade vizard change it toPopupMenu(mnuAddDeleteItems)
but i am getting the errorError 125 Name 'PopupMenu' is not declared.
PopupMenu is custom function? how can i resolve the issue -
there is no implimentaion for popupmenu in VB6 just its using the method can u please giveme some pointers how to replave that with contextmenu?
You will have to add a ContextMenuStrip to the form from the toolbox (in the formular designer). Then you can use the .Show method of this object to show the context menu. But you will have to map the Click-events yourself and will have to add the menu-items to the ContextMenuStrip first - but this is more or less the same that it used to be in VB6-days (well the menu-editor is gone but you can use some simple WYSIWYG editor directly in the form-designer)
-
You will have to add a ContextMenuStrip to the form from the toolbox (in the formular designer). Then you can use the .Show method of this object to show the context menu. But you will have to map the Click-events yourself and will have to add the menu-items to the ContextMenuStrip first - but this is more or less the same that it used to be in VB6-days (well the menu-editor is gone but you can use some simple WYSIWYG editor directly in the form-designer)