Context Menu

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin L

    #1

    Context Menu

    I have multiple controls that use the same context menu.
    Is there a way to determine which control initiated the context menu in the
    context menu's Click event?

    sender references the context menu itself.


  • Herfried K. Wagner [MVP]

    #2
    Re: Context Menu

    "Kevin L" <no_spam@not_re al_email.com> schrieb:[color=blue]
    >I have multiple controls that use the same context menu.
    > Is there a way to determine which control initiated the context menu in
    > the context menu's Click event?[/color]

    Check the contextmenu object's 'SourceControl' property.

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

    Comment

    • Crouchie1998

      #3
      Re: Context Menu

      Use '(Sender, e)'

      Crouchie1998
      BA (HONS) MCP MCSE


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Context Menu

        "Crouchie19 98" <crouchie1998@s pamcop.net> schrieb:[color=blue]
        > Use '(Sender, e)'[/color]

        Did you read the OP's post?

        ;-)

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

        Comment

        • Crouchie1998

          #5
          Re: Context Menu

          Where's your solution then, Herfried? I guess there isn't a link to a google
          thread - LOL

          Crouchie1998
          BA (HONS) MCP MCSE


          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: Context Menu

            "Kevin L" <no_spam@not_re al_email.com> schrieb:[color=blue]
            >I have multiple controls that use the same context menu.
            > Is there a way to determine which control initiated the context menu in
            > the context menu's Click event?[/color]

            Check the contextmenu object's 'SourceControl' property.

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

            Comment

            • Herfried K. Wagner [MVP]

              #7
              Re: Context Menu

              "Crouchie19 98" <crouchie1998@s pamcop.net> schrieb:[color=blue]
              > Where's your solution then, Herfried? I guess there isn't a link to a
              > google
              > thread - LOL[/color]

              Well, I posted a reply containing a solution quite a time ago :-).

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

              Comment

              • Crouchie1998

                #8
                Re: Context Menu

                Use '(Sender, e)'

                Crouchie1998
                BA (HONS) MCP MCSE


                Comment

                • Herfried K. Wagner [MVP]

                  #9
                  Re: Context Menu

                  "Crouchie19 98" <crouchie1998@s pamcop.net> schrieb:[color=blue]
                  > Use '(Sender, e)'[/color]

                  Did you read the OP's post?

                  ;-)

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

                  Comment

                  • Kevin L

                    #10
                    Re: Context Menu

                    Thanks very much.



                    "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                    news:%23ZxC5Pnd FHA.2984@TK2MSF TNGP15.phx.gbl. ..[color=blue]
                    > "Kevin L" <no_spam@not_re al_email.com> schrieb:[color=green]
                    >>I have multiple controls that use the same context menu.
                    >> Is there a way to determine which control initiated the context menu in
                    >> the context menu's Click event?[/color]
                    >
                    > Check the contextmenu object's 'SourceControl' property.
                    >
                    > --
                    > M S Herfried K. Wagner
                    > M V P <URL:http://dotnet.mvps.org/>
                    > V B <URL:http://classicvb.org/petition/>[/color]


                    Comment

                    • Crouchie1998

                      #11
                      Re: Context Menu

                      Where's your solution then, Herfried? I guess there isn't a link to a google
                      thread - LOL

                      Crouchie1998
                      BA (HONS) MCP MCSE


                      Comment

                      • Herfried K. Wagner [MVP]

                        #12
                        Re: Context Menu

                        "Crouchie19 98" <crouchie1998@s pamcop.net> schrieb:[color=blue]
                        > Where's your solution then, Herfried? I guess there isn't a link to a
                        > google
                        > thread - LOL[/color]

                        Well, I posted a reply containing a solution quite a time ago :-).

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

                        Comment

                        • Kevin L

                          #13
                          Re: Context Menu

                          Thanks very much.



                          "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                          news:%23ZxC5Pnd FHA.2984@TK2MSF TNGP15.phx.gbl. ..[color=blue]
                          > "Kevin L" <no_spam@not_re al_email.com> schrieb:[color=green]
                          >>I have multiple controls that use the same context menu.
                          >> Is there a way to determine which control initiated the context menu in
                          >> the context menu's Click event?[/color]
                          >
                          > Check the contextmenu object's 'SourceControl' property.
                          >
                          > --
                          > M S Herfried K. Wagner
                          > M V P <URL:http://dotnet.mvps.org/>
                          > V B <URL:http://classicvb.org/petition/>[/color]


                          Comment

                          Working...