Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove sound player object (container) from a visual foxpro form ?

Status
Not open for further replies.

DENNISDBASE

Programmer
Oct 20, 2014
3
US
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'.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Dennis,

Welcome to the forum.

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)

Visual FoxPro articles, tips and downloads
 
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.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top