开发者

Clear the items after ContextMenuStrip is shown

开发者 https://www.devze.com 2023-01-07 20:26 出处:网络
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 idea

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

精彩评论

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