Methods not executing in correct order

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lakepeir@yahoo.com

    #1

    Methods not executing in correct order

    Hello,

    I have to methods that I call:

    PopulateTextFie ld()
    PlaySound()

    and the PlaySound() method executes before the PopulateTextFie ld()
    method. Please help me to understand why this happens? Thanks.

  • Scott M.

    #2
    Re: Methods not executing in correct order

    What is making you think that PlaySound is executing first? Have you
    stepped through your code to verify this? Is there any other place in your
    code that would call this method?


    <lakepeir@yahoo .comwrote in message
    news:1168997647 .649065.311990@ l53g2000cwa.goo glegroups.com.. .
    Hello,
    >
    I have to methods that I call:
    >
    PopulateTextFie ld()
    PlaySound()
    >
    and the PlaySound() method executes before the PopulateTextFie ld()
    method. Please help me to understand why this happens? Thanks.
    >

    Comment

    • Cyril Gupta

      #3
      Re: Methods not executing in correct order

      Hello lakepeir@yahoo. com,

      I think your Populatetextfie ld might also involve refreshing of the form
      which is taking time to show up and your sound file plays before all of the
      text boxes are refreshed. Maybe setting up a call to Application.Doe vents
      can help things a bit.

      Regards,
      Cyril Gupta
      Hello,
      >
      I have to methods that I call:
      >
      PopulateTextFie ld()
      PlaySound()
      and the PlaySound() method executes before the PopulateTextFie ld()
      method. Please help me to understand why this happens? Thanks.
      >

      Comment

      Working...