Disable Controls also disables Shortcut Keys
Posted on 2001-06-21
I have this code I use to make fields "read-only" on a form. Works great, but found that it aslo disables the Menu Editor Shortcuts I use (F5, F9 etc). How can I re-enable the keys, or have the code skip the disabling of these special keys altogether?
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is TextBox Or TypeOf ctl Is CheckBox Or TypeOf ctl Is ComboBox Or TypeOf ctl Is MaskEdBox Then
ctl.Enabled = False
ctl.Enabled = True