Using DoEvents() in Visual Basic the Right way!?!
Tuesday, October 23rd, 2007
The DoEvents() method is Very popular and can be used in All versions of VB(Classic plus all of the .NET based versions). Adding this Function/Sub ( 5.0/6.0=Function /.NET=Subroutine ) will allow events to be processed in your application. Its very useful if you have time consuming, cpu eating code since it will allow Windows [...]
Popularity: 39% [?]
Doevents for VB.NET
Friday, June 15th, 2007
The DoEvents() subroutine is still in VB.NET. It is located under the System.Windows.Forms.Application namespace.
System.Windows.Forms.Application.DoEvents <-> to be exact.
In Visual Basic 2005 you can get to it quicker under the 'MY' namespace
My.Application.DoEvents()
If you plan on using DoEvents() in a continues loop, I would suggest using the GetInputState() api call.
The GetInputState() API will check whether [...]
Popularity: 16% [?]
