i have a problem auto-assigning mnemonics when dynamicly generating menues.
in some cases, two memorie entries get the same mnemonic key assigned
because the words begin with the same letter. this means, that they are more
or less useless
does anyone have an algorithm or some kind of code i can use to make sure
the mnemonic keys are unique when auto-assigning them
thank's! 2 2049
Lukas,
You could keep a list of the keys used, and then check the second letter
when you see that a key is used already. If it isn't used, then use that
letter, and so on, and so on.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Lukas Meusburger" <Lu************ **@hotmail.com( undsoweiter)> wrote in
message news:17******** *************** ***********@mic rosoft.com... i have a problem auto-assigning mnemonics when dynamicly generating menues.
in some cases, two memorie entries get the same mnemonic key assigned because the words begin with the same letter. this means, that they are more or less useless
does anyone have an algorithm or some kind of code i can use to make sure the mnemonic keys are unique when auto-assigning them
thank's!
Nicholas,
I thought of that too, but what if I insert some Menues manually between the
generating. I guess it will mess up my whole list.
Doesn't anyone of you have a working script that i could implement?
thank's!
lukas
"Nicholas Paldino [.NET/C# MVP]" wrote: Lukas,
You could keep a list of the keys used, and then check the second letter when you see that a key is used already. If it isn't used, then use that letter, and so on, and so on.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Lukas Meusburger" <Lu************ **@hotmail.com( undsoweiter)> wrote in message news:17******** *************** ***********@mic rosoft.com...i have a problem auto-assigning mnemonics when dynamicly generating menues.
in some cases, two memorie entries get the same mnemonic key assigned because the words begin with the same letter. this means, that they are more or less useless
does anyone have an algorithm or some kind of code i can use to make sure the mnemonic keys are unique when auto-assigning them
thank's! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fred |
last post by:
Hi,
I'm currently checking out what's available to add an
auto-update feature à la Yahoo/MSN to our Windows applications written
in VB.
Those that I checked so far require generating a list of files along
with a copy (full, or just a patched version) of each file, upload the
stuff to a www server, and have the client app download the list of
files to check whether it needs such and such patch.
|
by: csomberg |
last post by:
SQL 2000
I thought I would throw this out there for some feedback from others.
I'd like to know if you feel using MS auto-increment field is a good
solution these days or should one grow their own ?
Thanks,
Me.
|
by: Psych971 |
last post by:
Hi, I'm wondering how I can generate a postback using javascript on a page
that does not have any controls with the auto-postback property set to true.
I know I can just use the submit() function but this triggers page
validation which I do not want. What I'm trying to do is dynamically write
in a hyperlink that when clicked will remove an item from the form, so I
don't want any validation to occur because the form isn't being submitted at...
|
by: bubblegirl |
last post by:
Hi,
I need help in getting this database to work well (user-friendly) by generating auto client ID. The ID is NOT the auto number that Access automatically create when there is no primary key.
For example: 1/1/2006 ; 2/1/2006; 3/1/2006
The first number represent the client number and,
the second number represent the month of January and,
the last number represent the year
|
by: markmcgookin |
last post by:
Is it possible to add mnemonics to a menu defined using the java.awt?
i.e. File Ctrl+F
| |
by: gauravtechie |
last post by:
Hi all,
I have a javascript that is reloading itself on every menu change, Now the problem is that the values of the product doesn`t reset itself on catalogue change,
the code is
<html>
<head>
<title></title>
|
by: Oleg Ogurok |
last post by:
Hi there,
I have a WPF combobox with two values "Male" and "Female". It seems by
default the control supports mnemonics, e.g. if I press "M" on
keyboard, it sets the current ComboBoxItem to "Male"
If I use non-textual items, e.g. images+labels inside ComboBox, is
there a way hardcode such keyboard shortcut for each item?
E.g.
|
by: mike1reynolds |
last post by:
I have a VirtualMode DataGridView that bogs down on using the mouse wheel to scroll and gets a backlog of messages such that it continues to scroll long after ceasing to turn the mouse wheel. This is because instead of generating one scrollbar message for each mouse wheel message it generates a separate scrollbar message for each line move, forcing the entire screen to refresh with each line added.
I've put in code to scroll multiple lines...
|
by: Iluvatar |
last post by:
Hi,
last week our project upgraded from vs.net 2005 to vs.net 2008. Our
project still uses framework 2.0, because the deployment servers are
not 3.x ready yet. Everything so far while migrating the solution and
project files worked fine.
Today, I tried to add new controls to an existing web form. The markup
doesn't show any errors, but in the auto generated code behind
(*.aspx.designer.cs) I am missing the declartion of the added...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |