maskEdBox auto tab behaves incorrectly

Posted on 2011-10-04
Medium Priority
Last Modified: 2012-05-12
I have a control array made of a maskEdBox. The auto tab behaves as expected for lower case letters in a single value entry field, but as soon as you hold the shift key the tab goes backwards. Is this a Microsoft Bug?
Question by:Brandon_Campbell
  • 2
  • 2
LVL 70

Expert Comment

by:Éric Moreau
ID: 36909651
goes backward to the previous field? this is the normal behavior. check http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts

Author Comment

ID: 36909695
The masked control has a mask of >A. If the user were to hold the shift key and select "N" while the shift key is depressed then its normal for the autotab to go backwards? If this is the case then I will have to code the caps lock and unlock depending on the field.
LVL 70

Accepted Solution

Éric Moreau earned 1000 total points
ID: 36909774
>>If the user were to hold the shift key and select "N" while the shift key is depressed then its normal for the autotab to go backwards?

yes because a "SendKeys TAB" is sent by the MaskTextBox and the SHIFT is pressed so a backtab is interpreted

Author Closing Comment

ID: 36909819
This is a bad behavior for the control. My customer has a entry field that requires a "+" key to be entered in certain situations. Of course this send ths control back if they use the shift+"+" key. I have included in the lost focus event a setfocus to the next control in this situation but this is not the best work around. I could instruct the users to only use the numberpad "+" which works correctly. I will also key the comments and text fields to turn off caps lock on got focuse and return on lost focus.

Thank you.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question