Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling Windows Media Player
Message
De
16/05/2003 02:54:34
 
 
À
16/05/2003 02:28:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00789106
Message ID:
00789108
Vues:
31
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?...

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform