views:

24

answers:

1

Hi all,

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,

A: 

Please disregard this thread.

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

Thanks,

Lys