JohnH said:One of the overloaded 'Show' methods, goes for both ContextMenu and ContextMenuStrip classes
ContextMenuStrip1.Show(Panel1, New Point(10, 10))
ContextMenuStrip1.Show(Me, New Point(10, 10))
Thank you for quick answer, I appreciate it.JohnH said:It won't work on forms Load event because form isn't shown until after Load event handler is finished. Shown event works for this on startup.
Example to display ContextMenuStrip1 relative to Panel1:
Example to display ContextMenuStrip1 relative to Form:VB.NET:ContextMenuStrip1.Show(Panel1, New Point(10, 10))
VB.NET:ContextMenuStrip1.Show(Me, New Point(10, 10))