Disable left, right, up and down key
Hi guys. Here's my problem: i've done a wizard style form using sstab. For each step completed, i will change the active tab (triggered by next, previous buttons).
I've disabled the tab funtionality setting the SSTab property "TabStop = False". This works only for tab key,but not with up, down, right and down keys, so, i need to disable this keys, right?
Please, help me.
Thanks
Re: Disable left, right, up and down key
Welcome to the forums. :wave:
Why do you feel that need to disable those keys?
When you run your app, and use these keys, what happens that might be undesirable?
Re: Disable left, right, up and down key
Well, if the user sees the others tabs, they may access some data that hasn't been yet filled, and then it may crash my app. Thanks anyway, but i've resolved my problem with this piece of code:
Private Sub MultiPage1_GotFocus()
MainProg.CancelButton.SetFocus ' when the tab gets focus,
'the cancel object will get the focus
End Sub
Re: Disable left, right, up and down key
Quote:
Originally Posted by RS_Arm
Well, if the user sees the others tabs, they may access some data that hasn't been yet filled, and then it may crash my app.
This possibility is something your code should be set up to handle in such a way as to not have your app crash, and to provide a message to the user indicating what is happening.
Re: Disable left, right, up and down key
You can use the validation in each control that needs to be filled in. That will not allow for that control to loose focus until it's validated.