How to trigger a Keydown Event of Textbox when pressing the Shift Key

I am trying to make it so that when a user presses the Shift + Tab that it will back up on the tab order by 1. But i cannot get xojo to capture the event that the shift key was pressed. can the Keydown event handler for a textbox understand a shift key press?

Modifiers do not cause a keydown
But in the Keypressed event you can check for Keyboard.ShiftKey which means that the shiftkey was down when the event was raised

How do i add a KeyPressed event for a textbox on a Desktop application in Windows

I’d start by reading the user guides
http://developer.xojo.com/user-guide
otherwise you’re going to ask a lot of questions that are already covered in there
Theres a full PDF of it as well http://developer.xojo.com/user-guide-complete

On desktop, the event is KeyDown. You can use Keyboard.ShiftKey there.

Is there a special setting for the KeyDown Event to pop when the shift key is pressed? I have a textbox with a keydown event and here is my code for the event (its just 1 line to tell me whether the shift key was pressed):

MsgBox(CStr(Keyboard.ShiftKey))

However when i press any key, other than the shift key, it prompts me with a false. it will not trigger when i press the shift key.

You don’t check for the shift key separately. You check to see if it is down in combination with the current key pressed.

In the keydown event, run the appropriate code depending on whether Keyboard.ShiftKey is true or false. (i.e. if the tab is the key pressed, go forward 1 if false, and back 1 if true)

[quote=226209:@James Rogers]Is there a special setting for the KeyDown Event to pop when the shift key is pressed? I have a textbox with a keydown event and here is my code for the event (its just 1 line to tell me whether the shift key was pressed):

MsgBox(CStr(Keyboard.ShiftKey))

However when i press any key, other than the shift key, it prompts me with a false. it will not trigger when i press the shift key.[/quote]

Sorry, but you keep trying to drive in the night without headlights, and without reading what people try to tell you. Norman has responded to that before :

[quote]Modifiers do not cause a keydown
But in the Keypressed event you can check for Keyboard.ShiftKey which means that the shiftkey was down when the event was raised[/quote]

You really need to read the guides, and as far as your question is concerned, everything is here : http://documentation.xojo.com/index.php/keyboard

Picking up recipes will only get you so far, without a minimum of understanding of where to look for information.

That works great thanks!