Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do this in .NET
Message
 
À
15/04/2005 02:33:49
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01004810
Message ID:
01005081
Vues:
46
>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.
Chris McCandless
Red Sky Software
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform