Hello all;
I seem to have encountered a strange problem. I have a context menu
attached to a system tray icon (NotifyIcon) of a Windows App. Based on user
actions, I want to change the text of one of the menu items. Sounds easy
enough.
When I step through in the debugger, the .Text property of the menu item has
changed correctly (even at later points in the code), but when I right-click
on the tray icon it still shows the old value in the menu.
I've tried removing the menu item from the collection, changing the text,
and re-adding it, and also using BeginInvoke (the InvokeRequired always came
up false) to no avail. Another note: I set the menu text to a particular
value in the designer, and change it in the OnLoad of the Form, and this
works correctly. It is only when I try to change it at a later point that
is does not work.
Anyone else encounter this problem, and have some advice?
Thanks,
Derrick