Results 1 to 2 of 2

Thread: Positioning a ContextMenu to be X, Y of a LabelControl...

  1. #1

    Thread Starter
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Positioning a ContextMenu to be X, Y of a LabelControl...

    Hello, me again.

    I am working on a project that needs to have a ContextMenu not being at the MouseLocation X, Y but rather the X, Y of a LabelControl that is meant to be at the bottom of the LabelControl and also at the .Left positon of it, at that very point. So to look like a MenuBar, kind of thing...

    !! Thanks in advance !!
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  2. #2
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141

    Re: Positioning a ContextMenu to be X, Y of a LabelControl...

    You just have to plug in the x and y values
    Code:
    Private Sub Label1_Click()
        Me.PopupMenu mnuPop, , Label1.Left, Label1.Top + Label1.Height
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width