Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to do this in .NET
Message
From
15/04/2005 02:33:49
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01004810
Message ID:
01004996
Views:
36
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.

Thanks,

Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform