Making a Control on a Form Default.

  • 11 March 2015
  • 1 reply
  • 0 views

Badge +4

Hi All,

 

I suspect that this one is easy, I'm just missing something simple. 

 

I have three buttons on a form Yes, No and Cancel.

 

I simply want to make the No the default buttton when the form loads.

I can't see a default option in the Controls Properties, and I don't see one in the Transfer Data properties either.

 

At the moment it keeps defaulting to Yes, which in this case is not a good thing for my clients using the form.

 

Regards

Keith

 

16502iCBFA0505097BB291.jpg


1 reply

Badge +4

Hi, I found it. Yes it was simple in the Forms Initializing Rule I used the 'Execute a control's method'

 

14777i3F9BF5A20EA67180.jpg

 

In the Case of a Button Control it only has a Focus method.

 

15893i7447F62C0C02308F.jpg

 

So now my No Button has the focus when the Form Starts, which eliminates the problem that was causing.

 

Thanks

Keith

 

Reply