You don't.
Your whole interface gets built into the event structure. For example, the case in the
Mouse Move event that contains the coordinates indicator should incorporate the code to move your ball to the new location. The code for initializing the display goes outside the loop and gets executed before the loop starts. For other controls that your application requires, add event cases to handle them as needed.
Mike...