D
Dino Buljubasic
can somebody help me please with this simple problem?
I have combo box with numbers for months in it and want user to be
able to select a month Say 3 (for March) simply by clicking a number
either from the top row of keyboard or from numeric keypad.
So far I got this work for the top row (numbers) on the keyboard but I
can not get it to work for selected number from numeric keypad.
I do this:
for top row (numbers)
if e.KeyCode >= Keys.D1 And e.KeyCode <= Keys.D9 then
strKey as String = chrW(e.KeyData)
end if
for numeric keypad
if e.keyCode >= Keys.NumPad1 and e.KeyCode <= Keys.NumPad9 then
strkey as String = ?????
Thank you,
Dino
I have combo box with numbers for months in it and want user to be
able to select a month Say 3 (for March) simply by clicking a number
either from the top row of keyboard or from numeric keypad.
So far I got this work for the top row (numbers) on the keyboard but I
can not get it to work for selected number from numeric keypad.
I do this:
for top row (numbers)
if e.KeyCode >= Keys.D1 And e.KeyCode <= Keys.D9 then
strKey as String = chrW(e.KeyData)
end if
for numeric keypad
if e.keyCode >= Keys.NumPad1 and e.KeyCode <= Keys.NumPad9 then
strkey as String = ?????
Thank you,
Dino