Did I correct my form's painting problem?

I have a form that has a webbrowser control on it.  When I double-click a row in a table, another form with another webbrowswer control displays.  When I exit the second form, some of the first form's controls do not re-paint properly even though I refresh the form; clip control property was set to false.

To correct the problem, I set the the clip controls property to true in my first form.  This seemed to correct the problem.

Did I correct the problem correctly?  In either case, please explain your answer.  I need to get a better understanding to what the clip controls property does.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Form property Autoredraw = True



halfondjAuthor Commented:
Thanks for your reply.  I previously tried form1.refresh and that didn't work.  I'll have to try the set the autodraw property to true.

I'll post my results later.
If you are using any sort of sleep call during this time and a window moves over it the form will not repaint until its finished.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

halfondjAuthor Commented:
I recoded something and the me.refresh now works, but in one case, when I minimize the second form then close it, the first form refreshes, but all the controls don't display.

Any ideas?

halfondjAuthor Commented:
I solved my problem by adding a DoEvents after XSL transformnode methods.
hi halfondj, Hows everyting coming along? got it working OK?
halfondjAuthor Commented:
All worked out after I added the DoEvents (see my previous reply).  Since egl1044 recommended me to see if I used a sleep call, which I didn't, but lead me to the DoEvents, I'll grant him the points.

Thanks for the follow-up.
Thanks, Good to hear everything worked out for you. Thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.