Audax321 Posted July 24, 2003 Posted July 24, 2003 (edited) Hello, I had a question regarding shortcut keys in VB: Let's say you have a listbox containing the following items: THIS IS A LIST OF STUFF IN A LISTBOX & NOT A TEXTBOX And then I decide to make a context menu that dynamically creates menu items with the corresponding same text properties at runtime. So, there are 12 menu items each with a text property set to one of the words above. The menu therefore looks like this: THIS IS A LIST OF STUFF IN A LISTBOX _NOT A TEXTBOX Notice how the '& NOT' turned into '_NOT'. Is there a way to have VB .NET ignore the & symbol when changing the text property of a menuitem to a name that contains it???? And by ignore I don't mean I want to remove the & symbol from the name, but I want to keep it, just not have it make a _shortcut command....... Thanks... Edited July 24, 2003 by Audax321 Quote
Administrators PlausiblyDamp Posted July 24, 2003 Administrators Posted July 24, 2003 IIRC you can use a double & (so && Not) should display as & Not Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.