I have an app that opens a command prompt window then moves that command prompt window. Everything works fine but after the command prompt window is moved there is a "ghost" of the window where it originally was. If you grab the command prompt window and move it around it will erase the ghost of itself if that makes sense.
What I need is something that will refresh the screen to get rid of the "ghost" image of the command prompt window (vb6).
Visual Basic Classic
Last Comment
shorvath
8/22/2022 - Mon
Element1910
Is it creating a ghost copy every time you move it or only once?
MERCOMMS
ASKER
I only move it via code one time and it doesn't create the ghost then but instead leaves a ghost of where it was originally. Then if I grab the window I can use it kind of like an eraser to erase the ghost.
Martin Liss
Does the same thing happen if the code is run in the IDE? If NOT then try putting a DoEvents line after the code that moves the window.
Your help has saved me hundreds of hours of internet surfing.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.