Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling Windows Media Player
Message
From
16/05/2003 02:54:34
 
 
To
16/05/2003 02:28:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00789106
Message ID:
00789108
Views:
36
This message has been marked as the solution to the initial question of the thread.
I think the better is to put Windows Media Player ActiveX Control on VFP form - you will have full control over it:

1. From Tools|Options, click on Controls tab and select ActiveX Control. Mark "Windows Media Player".

2. Drop one instance on the VFP form.

3. Drop one command button on the form. Use this code in its Click event to load and play sample file:
ThisForm.Olecontrol1.Open([PathName to media file])
Very easy... And you get full right menu and all options! You only need to have necessary drivers, but WMP will also require them.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform