Getting mouse/keyboard input while in a repeat/until loop

My application calls a Form which displays a graphic. The Graphic is in a repeat/until loop wherein the graphic content is updated as a function of time.
The form has a menu with "Exit" "Save" "Print" etc sub items.

While in the time update loop, the form does not accept keyboard or mouse input. I have the form KeyPreview set to true, but it will not respond to mouse or keyboard input.
If I remove the repeat/until loop, to display the graphic as of one fixed time,  every thing works OK.

Is it possible to do a mouse/keyboard poll within the loop to get the menu items working? My earlier Dos protected mode version had no problems with this.

Any help much appreciated!

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.

The problem is when u put something in the loop in one of the component events there is no appropriate answer for other events
in fact your computer do the job inside one component events and when is finished its pass the controll to the event driver

u mey

1 Use theards
2 use timer component and break a loop in smaler peaces and start them in the component event and finish in more sequvences in the on timer event
Try putting Application.ProcessMessages in the loop.

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
DXPeteAuthor Commented:
This problem had caused me a lot of grief! Many thanks to the respondents for their help.

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

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.