Click here to Skip to main content
15,918,624 members
Home / Discussions / C#
   

C#

 
GeneralRe: Populate TreeView with ArrayList Pin
Nnamdi Onyeyiri15-Sep-04 3:22
Nnamdi Onyeyiri15-Sep-04 3:22 
GeneralRe: Populate TreeView with ArrayList Pin
93Current15-Sep-04 8:11
93Current15-Sep-04 8:11 
Generalfinding Movie duration of a wmv file Pin
gupta vaibhav15-Sep-04 0:04
gupta vaibhav15-Sep-04 0:04 
GeneralRe: finding Movie duration of a wmv file Pin
sreejith ss nair15-Sep-04 0:37
sreejith ss nair15-Sep-04 0:37 
GeneralRe: finding Movie duration of a wmv file Pin
gupta vaibhav15-Sep-04 3:39
gupta vaibhav15-Sep-04 3:39 
GeneralRe: finding Movie duration of a wmv file Pin
sreejith ss nair15-Sep-04 3:54
sreejith ss nair15-Sep-04 3:54 
GeneralRe: finding Movie duration of a wmv file Pin
gupta vaibhav15-Sep-04 18:18
gupta vaibhav15-Sep-04 18:18 
GeneralRe: finding Movie duration of a wmv file Pin
sreejith ss nair15-Sep-04 22:24
sreejith ss nair15-Sep-04 22:24 
Hi,
I didn't get you properly. Tell me , Your development is for Desktop PC or Smart Devices ?

If it is for Desktop PC then your .ocx file is wrong. That is you mentioned 'msdxm.ocx' but it is 'wmp.ocx'

msdxm.ocx is Microsoft NetShow player.
wmp.ocx ios Windows Media Player.


If your development is for any smart device then my previous post won't serve you neatly. And i am not much sure about the Microsoft NetShow Player (that is your msdxm.ocx file ) and it's usage.


If you want to know the movie duration without playing the movie in desktop then you can follow this steps.

Right click your tool bar and choose add/remove Items.
From there choose the COM tab and try to select Windows Media Player.
Once you choose the option then click ok to add that COM component in your application toolbar.

Drag Media control which may apper at the end of toolbar list (forms control list) into your application.

If you see the editior window then you can view the control declaration like this

private AxMediaPlayer.AxMediaPlayer axMediaPlayer1;

And then write this much logic where ever you wish.

private void Form1_Load(object sender, System.EventArgs e)

{

OpenFileDialog Open=new OpenFileDialog();

axMediaPlayer1=new AxMediaPlayer.AxMediaPlayer();

if(Open.ShowDialog()!=DialogResult.Cancel)

{

axMediaPlayer1.FileName=Open.FileName;

Double Dur = axMediaPlayer1.Duration;

MessageBox.Show("Selected Movie Is Of : "+Dur.ToString()+" Second Duration");

}


}



This code block will open a movie file from your specified location and will give you the duration of that perticular movie without playing.

This my logic only works in Desktop. If you are expecting something else from this then someother supporter will help you out.

thanks


**************************
S r e e j i t h N a i r
**************************
GeneralRe: finding Movie duration of a wmv file Pin
gupta vaibhav15-Sep-04 22:45
gupta vaibhav15-Sep-04 22:45 
GeneralOnly 2 decimal places for data in a textbox Pin
myNameIsRon14-Sep-04 17:07
myNameIsRon14-Sep-04 17:07 
GeneralRe: Only 2 decimal places for data in a textbox Pin
KevinMac14-Sep-04 18:22
KevinMac14-Sep-04 18:22 
GeneralRe: Only 2 decimal places for data in a textbox Pin
myNameIsRon14-Sep-04 19:09
myNameIsRon14-Sep-04 19:09 
GeneralRe: Only 2 decimal places for data in a textbox Pin
sreejith ss nair14-Sep-04 18:34
sreejith ss nair14-Sep-04 18:34 
GeneralRe: Only 2 decimal places for data in a textbox Pin
myNameIsRon14-Sep-04 19:03
myNameIsRon14-Sep-04 19:03 
GeneralRe: Only 2 decimal places for data in a textbox Pin
sreejith ss nair14-Sep-04 19:10
sreejith ss nair14-Sep-04 19:10 
GeneralRe: Only 2 decimal places for data in a textbox Pin
Stefan Troschuetz15-Sep-04 0:19
Stefan Troschuetz15-Sep-04 0:19 
GeneralRe: Only 2 decimal places for data in a textbox Pin
myNameIsRon15-Sep-04 18:24
myNameIsRon15-Sep-04 18:24 
General#define Pin
gmhanna14-Sep-04 16:33
gmhanna14-Sep-04 16:33 
GeneralRe: #define Pin
sreejith ss nair14-Sep-04 18:39
sreejith ss nair14-Sep-04 18:39 
GeneralRe: #define Pin
mav.northwind14-Sep-04 19:53
mav.northwind14-Sep-04 19:53 
GeneralRe: #define Pin
mebmer 12345678914-Sep-04 21:50
mebmer 12345678914-Sep-04 21:50 
GeneralHANDLE Pin
eggie514-Sep-04 14:39
eggie514-Sep-04 14:39 
GeneralRe: HANDLE Pin
Colin Angus Mackay14-Sep-04 14:56
Colin Angus Mackay14-Sep-04 14:56 
QuestionHow to change the text of a text object at runtime in crystal reports for .NET (C#) Pin
Member 119488414-Sep-04 11:45
Member 119488414-Sep-04 11:45 
AnswerRe: How to change the text of a text object at runtime in crystal reports for .NET (C#) Pin
sreejith ss nair14-Sep-04 18:42
sreejith ss nair14-Sep-04 18:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.