Follow these steps:
- Add a Frame to your form, set its enabled property to false.
- Add a button into the frame, set its default property to true.
- Add this code in the form's code:
VB Code:
Option Explicit Private Sub Command1_Click() MsgBox "1" End Sub- Run it.
If you try to click on the button, nothing happens because the frame is disabled. But, the button is set to be the default one, so... hit Enter. Should that MsgBox appear?? :confused: :eek2:
