G
Guest
Hi,
I am a new bee in C#. (I am a VC++ programmer long time already.)
I want to display a context menu in ListView. And the context menu items
will be changed during runtime -- it depends on the location which user
clicked, for example, over ListItem or not.
Now I set an empty contexMenuStrip to ContextMenuStrip of ListView. And add
ToolStripItems into this empty contexMenuStrip during "Opening" event of
contextMenuStrip. But it does not look correct.
Anyone knows what I must do?
Best Regards,
Michael zhang
I am a new bee in C#. (I am a VC++ programmer long time already.)
I want to display a context menu in ListView. And the context menu items
will be changed during runtime -- it depends on the location which user
clicked, for example, over ListItem or not.
Now I set an empty contexMenuStrip to ContextMenuStrip of ListView. And add
ToolStripItems into this empty contexMenuStrip during "Opening" event of
contextMenuStrip. But it does not look correct.
Anyone knows what I must do?
Best Regards,
Michael zhang