Created
March 9, 2018 18:24
-
-
Save mo10/fea80a52bebb198c002fd24e862fbc2c to your computer and use it in GitHub Desktop.
让ContextMenuStrip在鼠标指针右侧显示
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void contextMenuStrip_Opening(object sender, CancelEventArgs e) | |
{ | |
ContextMenuStrip menuStrip = (sender as ContextMenuStrip); | |
menuStrip.Show(Cursor.Position, ToolStripDropDownDirection.AboveRight); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment