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 > >Michael .at. foxpro .DO.T co.uk >www.foxpro.co.uk > > > > [excessive quoting removed by server]
©2006 Steve Ellenoff |