Walter Meester
HoogkarspelPays-Bas
>>Hi Chris,
>>
>>>Not sure if this applies to your question, but I believe the way that the Mere Mortals .NET framework handles this is:
>>>
>>>1. The form has a FocusOnNewControl property, which is of type Control. I believe all windows controls are derived from this class.
>>>1. The form itself calls a business object to add a new record, typically after a button is clicked.
>>>2. After the business object (called a primary business object) has created the record, if the FocusOnNewControl is not null, the form calls the control's Focus() method.
>>>
>>>Not sure if I explained that very well, but I think that is the gist of it.
>>
>>I think I understand how it is done. However it begs the question how do you set the forms FocusOnNewControl property in design mode ?? Of course this only works when each control does have a SetFocus method.
>Mere Mortals lets you select from a dropdown list of the controls you have on the form.
Hmmmm, valid if you're using a frame work doing this.
Walter,
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement