How to play a video in vb.net?

L

Lorenzo

I have a wmv file, that i want to play in my pocket pc app.
I think that i have to use a windows media player object.

But i don't know how to do this.

thanks in advance.
 
C

Christian Resma Helle

You can use System.Diagnostics.Process. Set the property
UseShellExecute = True, this will launch the file using the shell.

Try something like this:

Dim p As New Process()
Dim psi As New ProcessStartInfo()
psi.FileName = "[FILENAME]"
psi.WorkingDirectory = "[DIRECTORY]"
psi.Arguments = Nothing
p.StartInfo = psi
p.StartInfo.UseShellExecute = True
p.Start()


Regards,
Christian Resma Helle
http://christian-helle.blogspot.com
 
L

Lorenzo

Is there a chance to embed windows media player object in pocket app?
my need is to check the temination of .wmv

However, thank you for your suggestion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top