Tutorial :Clear the items after ContextMenuStrip is shown



Question:

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,


Solution:1

Please disregard this thread.

I should handle ContextMenuStrip.Closing event and put ContextMenuStrip.Items.Clear() inside to do the job.

Thanks,


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »