General information
Category:
Forms & Form designer
No .. I missed something: when you refered to the "default object", I didn't know you were refering to the ".Default property".
Anyway, for the most part, only CommandButtons have a .Default property; so you don't have to evaluate "every" object.
Add a property to your Form to hold a reference to the "default control", and then in the Init event of your button's base class, set this Form property to THIS when THIS.Default = .T.
>Thanks
>
>However what I was trying to do was shortcut evaluating every object to find it's .Default property and find one that was set to .T. - obviously finding the first one can stop the loop, but it's still a pain.
>
>Have I missed something obvious?
>
>Regards
>Simon
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only