开发者

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,

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜