G
Guest
Hi,
I'm trying to right-align a context menu with its source control.
Here's what I have to LEFT align it:
'\\\
Dim pt As New Point(0, myButton.Height)
myContextMenu.Show(myButton, pt)
'///
It looks like I need the width of the context menu to get the correct point:
Dim pt as New Point(myButton.Width - myContextMenu.Width, myButton.Height)
But there is no "Width" property for the context menu or its items. Does
anyone know how to do this without owner drawing the context menu?
Thank you
I'm trying to right-align a context menu with its source control.
Here's what I have to LEFT align it:
'\\\
Dim pt As New Point(0, myButton.Height)
myContextMenu.Show(myButton, pt)
'///
It looks like I need the width of the context menu to get the correct point:
Dim pt as New Point(myButton.Width - myContextMenu.Width, myButton.Height)
But there is no "Width" property for the context menu or its items. Does
anyone know how to do this without owner drawing the context menu?
Thank you