>I have no idea why this works, but it did........with one modification. The width of the textbox was being picked up based on the width in the base class, not the width in the instance of the container. I put your Visible off/on trick at the beginning of the method as well and it seems to be working. We'll see how well it works in the middle of the application.
>
>One other benefit of the SetCaption method is that I no longer need the Caption_Assign method so I didn't have to subclass the base textbox class.
>
>Thanks to all for your contributions.
>
I guess we're talking about label here. I also hope you're not using VFP base classes in your forms but rather some classes.
If it's not broken, fix it until it is.
My Blog