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 !!
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