>>I have defined my form to have a BorderStyle of 3. I didn't have any problem until now when doing the refresh. Now, that I put a container on the form, whenever I refresh, I have some weird behaviors. Part of the region, when I enlarge the form, is completely invisible. Which mean, I see the background of the desktop inside the form.
>>
>>Comments?
>
>Have you put some code in the Resize() event?
Ok, I have fixed one problem. I defined my container to be 1280*1024. The problem was related to I was also adjusting the container which seems to have a bug. So, by defining those values, I don't have to play with them after.
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.