I think that maybe windows isn't updating the screen and so it doesn't see that you have clicked the button. Are you using UpdateWindow() in your loop? This makes sure that the status of all controls that you see are what windows sees.
Grant
Grant M. Johnson
Project Engineer
LECO Corporation