I had alot of do events in there and it didn't solve it but I found out my problem.
It had to do with the actual function so I think I got it fixed
THanks!
Main Topics
Browse All TopicsIs it possible for Visual Basic to be so busy with tasks as to cause it to miss events?
I ask because this is my situation:
I have two projects. One is nothing but a form, with some functions that raise an event. When I run this program, the event always triggers as it's supposed to.
The other program has the identical code that generates the event but has many other items on the form, such as timers controls, etc.. When I run this project the event doesn't fire as it should unless I repeatedly click the command button that I'm using to test the event. Is there a way to "force" VB to look for events? or maybe stop what it's doing and watch for an event for, say , 2 seconds?..
I realize this question is general. I have source code if anyone is interested but I'm hoping I don't have to do that..
Thanks again!
Jeff
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Your mention of 'timers, etc' set off a small alarm.
Recall that timer events take priority over many others.
One is tempted to suspect that your timer interval interval is too small or what you're doing on each hit is too much - so much so that all you end up doing is handling the never ending sequence of timer events that keep jumping in line ahead of other queued events.
If that's the case, one way to deal with it is to disable the timer while you're handling the event, then restart it just before exiting the event.
Business Accounts
Answer for Membership
by: mcriderPosted on 2002-06-28 at 14:08:52ID: 7117269
I believe what you're looking for is the DoEvents function. Place it in your loops and timer events when they're tight. This will allow the system to process other events (like clicks).
BE CAREFUL WITH THIS FUNCTION!!!
Read the help page for it before use it! You can cause yourself alot of headaches with this... Like multiple fireing of events where data can be overwritten in a variable...
Cheers!®©