DoEvents() inside a class? 
Author Message
 DoEvents() inside a class?

I got an application with a class that takes a while to
complete a method. How can I put something like a DoEvents
inside the loop of the class?

Thanks,



Sat, 09 Oct 2004 05:21:29 GMT  
 DoEvents() inside a class?
It's not obvious, but DoEvents still exists - you just have to qualify it:
System.Windows.Forms.Application.DoEvents().

A better suggestion, however, would be to have the method run on it's own
thread.

--
hth,
Steve Hoag (the V-Bee)
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights.


Quote:
> I got an application with a class that takes a while to
> complete a method. How can I put something like a DoEvents
> inside the loop of the class?

> Thanks,



Sat, 09 Oct 2004 05:58:20 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Firing events from a form inside a class inside a test app

2. 'DoEvents' inside ActiveX DLL

3. DoEvents inside COM event?

4. DoEvents inside TrueDBGrid RowColChange Event

5. doevents in classes

6. using a class inside itself

7. Using ActiveX inside class module

8. DataEnvironment: Can it be encapsulated inside a Class?

9. ActiveX control inside a class + handling its events ??

10. array variables inside Classes <-- why an error?

11. For each statement for a dictionnary inside a class

12. Multiuse Classes inside an OCX

 

 
Powered by phpBB® Forum Software