What is the correct syntax to designate a default button?

William Joy

New member
What is the correct syntax to designate a default button?
A. Form.default=button1
B. Form.defaultButton=button1
C. Form.AcceptButton=button1
D. Form.focused=button1
 
Answer: c
♥♥♥♥Clarification: The default button is set as form.AcceptButton=button-name. We use to set the default button using the Accept button property, thus we need to give as .AcceptButton to designate a default button in the form.
 
Top