Re: In Delphi, how to make appear an image and at the same time play a sound?
[ Delphi
Forum ] [ Delphi Tutorials -- by DelphiLand ]
Posted by Rbrrneck on June 28, 2003
In Reply to: how to make appear a image and in the same time play a sound?! help needed posted by Alex on June 26, 2003
: i want to make a program where wen you click a button an image appear and a sound is played plese
---------
Put this in the onclick event of the button...oh yeah for this to work, you need to put mmsystem in the uses list,and drop a TImage on the form...
IMage1.Picture.LoadFromFile(theimage.bmp);
PlaySound('C:\f.wav',0,0);
Hope this is what you meant..
[ Delphi
Forum ]
[ DelphiLand: free Delphi source code, tips, tutorials ]
|
|