I put a sound file on a visual FoxPro form and want to remove it. It must be invisible on the form because I can't find the 'play sound' object on my form.
Even invisible, it should still show up until run time.
You can either:
Select the form itself in the properties window, then scroll down through all the objects until you find it,
-or-
Select the form and do a "Control-A" to select all objects on the form. You should then see all the form objects. Click on it (whatever object you don't want to keep) and press 'Delete'.
You are right that the file is invisible. What you will see on the form at design time is simply the name of the file, in quite small letters. If you click on or near the filename, you should see eight black dots which mark the boundaries of the object.
As Dave explained, you can see the control in the drop-down list at the top of the Properties window. It should appear as [tt]Olecontrol1[/tt] (unless you have explicitly renamed it). Select that item in the drop-down list, and then move focus back to the form and hit the Del key.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Maybe the form is using MCI commands, then you'll not see anything.
set a breakpoint before starting the form and see when playing the sound starts while single stepping through the code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.