473,326 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Updating Menu Items

I have a tray icon application that displays a context menu when it is
right clicked. One of the menu items on this context menu is a
submenu. The text of the menu items in this submenu get updated from
time to time, however, when the submenu is popped up the old/original
text always shows. Selecting one of these menu items copies its text
to the clipboard. When I do a paste, the new updated text is pasted
proving that the menu item text has been updated but the display of
the menu item has not. How can I force the menu item display to update
once I have changed the menu item text?

Here is how I set the menuitem text:

string strNewText;
// ... stuff to calc new text ...

this.m_menuItem.Text = strNewText;

I searched for a way to invalidate/update the menu item, but I can't
find anything. I also don't see anything to update the submenu from
the parent menu. Any help is greatly appreciated.

-Frank
Nov 16 '05 #1
1 1257
I had the same problem and NEVER found a solution. I'd love to be
notified of a solution.

chad AT osisoft DOT com
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
8
by: Dennis C. Drumm | last post by:
Is there a way to modify the standard context menu shown when someone right clicks in a windows text box and that would work for all open windows applications? The standard context menu for...
3
by: Terry McNamee | last post by:
I have a DataTable which i have added data to. I have a custom method that prints a DataView of the DataTable out on the screen. The problem I'm having is, i need to call the custom method...
1
by: Terry McNamee | last post by:
Hi Nicholas, To give you a better understanding of what I'm doing... I'm using a ownerdrawnlist control that is used as a menu on the smartphone. To populate this menu, I iterate through the...
6
by: Sandy | last post by:
Hello - I have a book that illustrates pulling menu items from a Sql Server table into an ascx via a stored procedure. Is this something that is done in the real world? I do like the effect...
1
by: goRide | last post by:
Hi, I'm looking of a way (preferred - a ready class or dll) to customize the context menu. many application has more controls inside the context menu (like textbox, sliders, checkbox, panel...
2
by: PT | last post by:
Hi, I have created a basic form that contains a menu and tab control and a widget that a directx is rendered too, if I remove the directx rendering all is well, but when it's rendering non of the...
1
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hi, friends, I am using C#.net 2005 to create a windows application. It has menu items, such as File, etc. Under File, there are more menu items, such as New Files, Working Files, etc. Under...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.