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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. context menu with textbox

context menu with textbox

Scheduled Pinned Locked Moved C#
question
5 Posts 4 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.
  • A Offline
    A Offline
    atramard
    wrote on last edited by
    #1

    Hi, I am trying to add to a context menu a textbox suimila to what you have in Access. is it possible, if so how? Regards Alban

    R V E 3 Replies Last reply
    0
    • A atramard

      Hi, I am trying to add to a context menu a textbox suimila to what you have in Access. is it possible, if so how? Regards Alban

      R Offline
      R Offline
      Rocky
      wrote on last edited by
      #2

      I think its pretty simple just make a new MenuStrip And in the designer view go to the properties of that textbox and add the menu to the contextMenuStrip Property of that text box and thats it. hope it helps Rocky

      1 Reply Last reply
      0
      • A atramard

        Hi, I am trying to add to a context menu a textbox suimila to what you have in Access. is it possible, if so how? Regards Alban

        V Offline
        V Offline
        Venk259
        wrote on last edited by
        #3

        hi alban, For .net 1.1 Add a context menu from the toolbox to the form, add sub menu's as required by you Then go to the textbox property,then set ContextMenu property to context menu which you have created. For .net 2.0 Add a contextmenustrip from the toolbar to the form, add sub menu's as required by you Then go to the textbox property, then set ContextMenuStrip property to context menu strip which you have created

        A 1 Reply Last reply
        0
        • V Venk259

          hi alban, For .net 1.1 Add a context menu from the toolbox to the form, add sub menu's as required by you Then go to the textbox property,then set ContextMenu property to context menu which you have created. For .net 2.0 Add a contextmenustrip from the toolbar to the form, add sub menu's as required by you Then go to the textbox property, then set ContextMenuStrip property to context menu strip which you have created

          A Offline
          A Offline
          atramard
          wrote on last edited by
          #4

          I may have miss explaiend myself. What i am trying to have is within the context menu having a textbox that would come up as per the menu structure show bellow. ContextMenu SubMenuA Textbox SubMenuB Thanks

          1 Reply Last reply
          0
          • A atramard

            Hi, I am trying to add to a context menu a textbox suimila to what you have in Access. is it possible, if so how? Regards Alban

            E Offline
            E Offline
            Eagle_Wizard
            wrote on last edited by
            #5

            You can make a borderless form and then use that as your context menu. Just make the form apear when you right click the textbox. To exchange information to this context menu, you can add a reference to the base form in the contstructor of the contectmenuform

            Programming code is like magic, just use the right code (magic words) to make happen what you want..

            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