Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. PopupMenu -> upgrading issue VB6 to VB.Net

PopupMenu -> upgrading issue VB6 to VB.Net

Scheduled Pinned Locked Moved Visual Basic
helpquestioncsharp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sarat
    wrote on last edited by
    #1

    in my VB6 code the code line is like this PopupMenu mnuAddDeleteItems upgrade vizard change it to PopupMenu(mnuAddDeleteItems) but i am getting the error Error 125 Name 'PopupMenu' is not declared. PopupMenu is custom function? how can i resolve the issue

    C 1 Reply Last reply
    0
    • S sarat

      in my VB6 code the code line is like this PopupMenu mnuAddDeleteItems upgrade vizard change it to PopupMenu(mnuAddDeleteItems) but i am getting the error Error 125 Name 'PopupMenu' is not declared. PopupMenu is custom function? how can i resolve the issue

      C Offline
      C Offline
      CKnig
      wrote on last edited by
      #2

      You might have to rewrite the code using the ContextMenu class.

      S 1 Reply Last reply
      0
      • C CKnig

        You might have to rewrite the code using the ContextMenu class.

        S Offline
        S Offline
        sarat
        wrote on last edited by
        #3

        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?

        C 1 Reply Last reply
        0
        • S sarat

          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?

          C Offline
          C Offline
          CKnig
          wrote on last edited by
          #4

          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)

          S 1 Reply Last reply
          0
          • C CKnig

            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)

            S Offline
            S Offline
            sarat
            wrote on last edited by
            #5

            Thanx a lot CKnig

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups