Similar to the container approach, if I have more than 1 or 2
controls to swap out, I'll use an invisible pageframe, and just show
the appropriate page as necessary. Much easier than setting visible
and / or enabled for all the different controls. FYI - the pageframe
is made by having no border width & color, and having no tabs. I
forget off the top of my head the correct term for these properties.
I've found it to be a very effective technique in managing form's
that have to look or behave different based on some criteria.
-Steve
At 02:33 PM 6/30/2006, you wrote:
I use a container to create a textbox with caption,
search/add/validation error etc icons. You could take this approach
and just have two textboxes in the container and write code to swap
between them. This would make managing the change and form much easier.
--
Michael Hawksworth
Visual Fox Solutions
[EMAIL PROTECTED]
www.foxpro.co.uk
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.