Hi,
I am using VS2003 C# and i want to run avi file from my application.
How can i process that open Windows media player and run my file
automaticlly ?
Thanks,
Yossi
Tim Wilson - 11 Mar 2006 14:40 GMT
You can use the Process class to open the avi.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemdiagnosticsprocessclassstarttopic3.asp

Signature
Tim Wilson
.NET Compact Framework MVP
> Hi,
> I am using VS2003 C# and i want to run avi file from my application.
[quoted text clipped - 3 lines]
> Thanks,
> Yossi
Morten Wennevik - 11 Mar 2006 15:41 GMT
Hi Yossi,
In addition to Tim's suggestion of letting Windows fire up whatever program is assigned to the avi-format you can load the Media Player COM object. In visual studio Add Reference, select the COM tab and locate Windows Media Player on the list.
> Hi,
> I am using VS2003 C# and i want to run avi file from my application.
[quoted text clipped - 3 lines]
> Thanks,
> Yossi

Signature
Happy coding!
Morten Wennevik [C# MVP]