Results 1 to 2 of 2

Thread: Trouble using Api call from Sub Main()?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    I am having trouble in calling StrechBlt from Sub Main(). It produces no effect, while the same code in a command button on the form executes the code perfectly. I am calling StretchBlt just after showing the form in my sub main.


  2. #2
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    The Sleep function is completely different from DoEvents. Sleep completely halts your app until the requested time is up. DoEvents allows other processes to complete their code and then runs the code directly following it.
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

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