Path: news.daimi.aau.dk!news.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!sunic!news99.sunet.se!nntp-trd.UNINETT.no!nntp.uio.no!news.cais.net!newsfeed.internetmci.com!news.sesqui.net!rice!es.rice.edu!joel From: joel@rice.edu (Joel Castellanos) Newsgroups: comp.lang.beta Subject: Q: checking for pending events. Date: 23 Apr 1996 21:46:46 GMT Organization: Rice University, Houston, Texas Lines: 15 Message-ID: <4ljj47$qh9@larry.rice.edu> NNTP-Posting-Host: moe.rice.edu X-Newsreader: TIN [version 1.2 PL2] Does anyone know how to tell VB to check for pending events in the middle of a subroutine. For example, the user clicks a button which causes some calculations to be done, and then some complicated graphics to be drawn (that might take as much as 5 minutes). Now, in the graphics routine I want to be able to check for other mouse clicks - if one occurs then I want the graphics routine to immediately abort, and control to be transferred to the handling of the second click.. Any help would be greatly appreciated. Joel (joel@es.rice.edu)