Problem loading and displaying a form

  • Thread starter Thread starter JDR2000
  • Start date Start date
J

JDR2000

I am creating a form, then displaying it using ShowDialog().

The problem is that thie form is supposed to display itself, and then
a sound is played. Unfortunately, the sound always starts up before
the form is painted. Is there an event that indicates that the form
has been completely displayed on the screen, so I can then begin the
sound player?

Many thanks in advance,

Jon R.
 
Sat. Sep. 25, 2004 6:25 PM PT

It is a common windows programming. Put a Timer in your form Load event, for
200, 300 ms (mili seconds) when it completes stop the timer and start the
sound file. Try it.

Good Luck.
 
Have you tried the Form's Load event? It gets called right b4 the form
is displayed and may give you what you want.
 
Back
Top