Clear the items after ContextMenuStrip is shown
I wanted to clear the 开发者_开发知识库items just after the ContextMenuStrip is shown. However when I was making the following calls, ContextMenuStrip didn't show properly in the first place. Any ideas?
ContextMenuStrip.Show()
ContextMenuStrip.Items.Clear();
Thanks,
Please disregard this thread.
I should handle ContextMenuStrip.Closing event and put ContextMenuStrip.Items.Clear() inside to do the job.
Thanks,
精彩评论