Results 1 to 6 of 6

Thread: What's the equivalant of DoEvents in VB.NET?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2004
    Posts
    65

    What's the equivalant of DoEvents in VB.NET?

    What's the equivalant of DoEvents in VB.NET?

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: What's the equivalant of DoEvents in VB.NET?

    application.DoEvents

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2004
    Posts
    65

    Re: What's the equivalant of DoEvents in VB.NET?

    Thanks. One problem! I don't have an application object. I'm inside a library. What then?

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: What's the equivalant of DoEvents in VB.NET?

    it simply may not be possible with what you are doing.. you may need to look into using multiple threads instead.... unless someone else has a better answer

  5. #5
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Re: What's the equivalant of DoEvents in VB.NET?

    Threads are probably the way to go. But just a thought. Is the library yours to modify the code? If so, how about passing in the application object, then you can .DoEvents on it? Haven't tried, just a thought.

  6. #6
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Re: What's the equivalant of DoEvents in VB.NET?

    A component shouldn't call an application level command - why not run your time consuming code either asynchronously or in its own thread...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width