Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by Audax321

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...