How to play a video in vb.net?

  • Thread starter Thread starter Lorenzo
  • Start date Start date
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.
 
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
 
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.
 
Back
Top