Click to See Complete Forum and Search --> : Window pop-up is working, but....
Electron
Nov 28th, 1999, 03:02 AM
I got my window pop-up thing to work well, but when it pops up, the BackColor is suppposed to be Red, but shows up transparent while the WAV is playing.
What the heck is up with that? Any suggestions?
Thanks!
Jeff
Bob Baddeley
Nov 28th, 1999, 03:09 AM
could you put in a line before the play wave that says Form1.BackColor = vbRed ? or maybe put in a While/wend function so that when the wave is running it continuously resets the background color?
Can answer that one...it happens to me with splash screens...I make a splash screen show while the program is loading but it doesn't finish showing the splash screen properly (it is transparent) until it has finished loading the rest of the program (defeating the whole idea of having a splash screen). Nuff chatting...
The way I get around it is to have the form display itself properly and use a timer to load the rest of the program/play the sound file...set the timer's interval to about a quater of a second (enough time for your red form to redraw itself) and when the timer goes off have it disable the timer and play your sound file...)
Make any sense?
------------------
Matthew Ralston
E-Mail: m.ralston@mediavault.co.uk
ICQ:31422892 (http://195.89.158.103/icq.html)
Web Sites:The Blue Link (http://195.89.158.103) My Home Page (http://mralston.cjb.net)
Inhumanoid
Nov 28th, 1999, 07:03 PM
Couldn't you just use something like frmsplash.show to make the window paint itself completely before doing any other stuff..
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.