How do I write a code to activate a popup menu when I right click in a label control?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eng Teng

    How do I write a code to activate a popup menu when I right click in a label control?

    How do I write a code to activate a popup menu when I right click in a label
    control?

    Regards,
    Tee

  • Armin Zingler

    #2
    Re: How do I write a code to activate a popup menu when I right click in a label control?

    "Eng Teng" <engteng@gmail. comschrieb
    How do I write a code to activate a popup menu when I right click in
    a label control?
    In the Form designer, add a ContextMenu (or ContextMenuStri p) to the
    Form. Select the label and set the ContextMenu (or ContextMenuStri p)
    property in the property window.

    Learn more about the ContextMenuStrip control, which provides a shortcut menu that you associate with a control.

    (older ContextMenu:
    http://msdn.microsoft.com/en-us/library/2961245e.aspx)


    Armin

    Comment

    • kimiraikkonen

      #3
      Re: How do I write a code to activate a popup menu when I right clickin a label control?

      On May 3, 5:43 pm, "Eng Teng" <engt...@gmail. comwrote:
      How do I write a code to activate a popup menu when I right click in a label
      control?
      >
      Regards,
      Tee
      Hi,
      If you're meaning contextmenu by saying pop-up menu, you can show it
      with a right click by just assigning ContextMenuStri p to a label from
      properties window of label.

      Thanks,

      Onur

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: How do I write a code to activate a popup menu when I right click in a label control?

        "Eng Teng" <engteng@gmail. comschrieb:
        How do I write a code to activate a popup menu when I right click in a
        label control?
        Add a contextmenu component to your form and assign it to the control's
        'ContextMenu' property.

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        • art

          #5
          Re: How do I write a code to activate a popup menu when I right clickin a label control?

          Hi !,

          Excuse me if I ask a related question and for help. I use MS
          Visio2003 with a tablet pc. I'd like to be able to use the pen's mouse
          button while in the application window to change the current mode of
          things without having to navigate the toolbar or menus. This would
          make the experience of using the SW very sweet and powerful.

          I'd like to go for example from the selector tool to certain ink
          tools (e.g eraser) with just a popup menu activated in the main
          window. I am not a seasoned programmer so that is why I am looking for
          help, even willing to pay for sample or working code. I have messed
          around with the macro recorder in Visio so I think I had a handle on
          changing the modes but how to work the menu's would take a real real
          lot of my time which is where I'd prefer to pay or get help from a
          seasoned programmer.


          Cheers,
          Art


          On May 3, 8:13 am, "Herfried K. Wagner [MVP]" <hirf-spam-me-
          h...@gmx.atwrot e:
          "Eng Teng" <engt...@gmail. comschrieb:
          >
          How do I write a code to activate a popupmenuwhen I right click in a
          label control?
          >
          Add a contextmenu component to your form and assign it to the control's
          'ContextMenu' property.
          >
          --
           M S   Herfried K. Wagner
          M V P  <URL:http://dotnet.mvps.org/>
           V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>

          Comment

          • Ralph

            #6
            Re: How do I write a code to activate a popup menu when I right click in a label control?


            "art" <art@rain.orgwr ote in message
            news:4fcc7d3a-ce55-43b3-b4e7-9ea201163189@s3 3g2000pri.googl egroups.com...
            Hi !,

            Excuse me if I ask a related question and for help. I use MS
            Visio2003 with a tablet pc. I'd like to be able to use the pen's mouse
            button while in the application window to change the current mode of
            things without having to navigate the toolbar or menus. This would
            make the experience of using the SW very sweet and powerful.

            I'd like to go for example from the selector tool to certain ink
            tools (e.g eraser) with just a popup menu activated in the main
            window. I am not a seasoned programmer so that is why I am looking for
            help, even willing to pay for sample or working code. I have messed
            around with the macro recorder in Visio so I think I had a handle on
            changing the modes but how to work the menu's would take a real real
            lot of my time which is where I'd prefer to pay or get help from a
            seasoned programmer.


            =============== =============== ==============

            Have you tried the "Microsoft Office XP Pack for Tablet PC"


            Support isn't quite up to what is available for Word, Excel, etc. But better
            than nuth'n.

            -ralph


            Comment

            • art

              #7
              Re: How do I write a code to activate a popup menu when I right clickin a label control?

              On May 9, 8:41 am, "Ralph" <nt_consultin.. .@yahoo.comwrot e:
              Have you tried the "Microsoft Office XP Pack for Tablet PC"http://www.microsoft.c om/downloads/details.aspx?Fa milyID=33790048-269...
              >
              Support isn't quite up to what is available for Word, Excel, etc. But better
              than nuth'n.
              >
              -ralph
              Hi Ralph,

              I think I have it installed. What is there in 2003 Visio on my tablet
              is pretty darn good. It's just that if you could switch between simple
              tools and modes you can really turbo charge your work flow and
              concentration. If you draw or write a little idea down and you need to
              quickly move it somewhere you have to stop what you are doing lose
              your ink took go to select mode, select the item, move it, go back to
              ink mode, then rememeber what you were doing. I envision the creative
              work flow would be much better if you could just right click the mouse-
              pen button and change things. There are plenty of other examples I
              could give too.

              . I'll have a look at the XP pack but I am pretty sure I have it
              already. I still think Visio is a quick but program and I dont think
              much of the ink applications out there. that is why I am trying to
              enhance visio and the pen experience.

              Thanks much

              Comment

              Working...