Link to home
Start Free TrialLog in
Avatar of Fordraiders
FordraidersFlag for United States of America

asked on

KEY COMBINATION TO INCREMENT ALPHA OR NUMERIC VALUE IN TEXTBOX

VB.NET 2003

I have a textbox  "txtLevel"

In the keydown event of my form  i need the following:

If a user  presses  Ctrl+Shift+F7

If the value in txtLevel is numeric ( that is 1-1000) then the number gets raised to the next number

i..e  If the value is  "3" then its gets raised to "4"

i.e. If the value is  "A"  then  it goes to "B"

If the value is "0" or null...then nothing happens

messagebox.show "No values to increment"


Thanks
fordraiders












Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Hi fordraiders,

Can you expound on the letter half of the problem?

Do you want the LENGTH of the letter to increase as well?

For example, "Y" --> "Z", but would "Z" --> "AA", and "AA" --> "AB"?

Here's another sequence:
AZX
AZY
AZZ
BAA
BAB
BAC

And another:
ZZX
ZZY
ZZZ
AAAA
AAAB
AAAC
ASKER CERTIFIED SOLUTION
Avatar of nffvrxqgrcfqvvc
nffvrxqgrcfqvvc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Fordraiders

ASKER

IDLE MIND,  no