>>However, in one of my method I have ThisForm.Message.SelStart=1. If I have this code, now that I use a container, when moving from another application to the Visual FoxPro application, the form is not refresh. It shows the previous application inside the Visual FoxPro form. If I remove ThisForm.Message.SelStart=1, I don't have that problem.
>
>What about Resize() ?
Resize() is not related to this problem.
I did it again. Whenever I put this line of code in comment, I don't have the problem. Before, I didn't have a container and it was ok. There seems to be a problem when having a container and/or an OCX which is part of it and this line of code.
I have the refresh problem just by being within the form. I have a button, which pop up a menu. That menu, after I select an option, does not go away. It gets printed in the screen.
I guess, as for the first problem, there should be a workaround for that one as well.
Containers are good but we inherits of all their bugs. :)