Results 1 to 2 of 2

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

  1. #1
    PowerPoster
    Join Date
    Dec 07
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,089

    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 32-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
    Main Page: Click Here | Blog Page: Click Here | Products Page: Click Here | News Page: Click Here | Horoscopes Page: Click Here | CodeBank Page: Coming Really Soon...

    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 01
    Location
    Trafalgar, IN
    Posts
    3,480

    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
  •