Results 1 to 24 of 24

Thread: [RESOLVED] Looping a .wav File

Hybrid View

  1. #1
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Looping a .wav File

    Design-time only means while you are writing code, etc. Run-time is when you run it, whether that is in VB or compiled.

    The answer to your question is that you cannot stop the code and then have something happen - you need to close it properly (the same way you would when it is compiled), so that the code to tidy up has a chance to run.


    Note that Form_QueryUnload is actually the wrong place for the code, it should be in Form_Unload instead. There is an explanation of why in the article How should I close my form/program/class? from our Classic VB FAQs

  2. #2
    New Member
    Join Date
    Sep 2009
    Posts
    6

    Re: Looping a .wav File

    si_the_geek

    So, if I put the call (StopPlay_LOOP "") in Form_Unload it will Stop Playing the loop when I close the Form?

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