Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
GeneralRe: Difference Pin
yaminilatha24-Apr-07 0:47
yaminilatha24-Apr-07 0:47 
AnswerRe: Difference Pin
Guffa24-Apr-07 0:57
Guffa24-Apr-07 0:57 
AnswerRe: Difference Pin
Nouman Bhatti24-Apr-07 1:10
Nouman Bhatti24-Apr-07 1:10 
QuestionUrgent..How to play and stop Video files externally using WindowsApplication Pin
kraj9923-Apr-07 23:54
kraj9923-Apr-07 23:54 
AnswerRe: Urgent..How to play and stop Video files externally using WindowsApplication Pin
Keshav V. Kamat24-Apr-07 0:08
Keshav V. Kamat24-Apr-07 0:08 
GeneralRe: Urgent..How to play and stop Video files externally using WindowsApplication Pin
kraj9924-Apr-07 0:48
kraj9924-Apr-07 0:48 
AnswerRe: Urgent..How to play and stop Video files externally using WindowsApplication Pin
Christian Graus24-Apr-07 1:19
protectorChristian Graus24-Apr-07 1:19 
GeneralRe: Urgent..How to play and stop Video files externally using WindowsApplication Pin
kraj9924-Apr-07 18:56
kraj9924-Apr-07 18:56 
Below is the sample code. One more thing I want to mention here is that I am using a third party GUI software, so I wont be able to add WMP control on to the Window Form. I just need to control the WMPlayer by the code.
The below mentioned code is able to open the player. But the stop and close functionalities are not working.

public partial class Form1 : Form
{
private WindowsMediaPlayerClass wmPlayer = new WindowsMediaPlayerClass();
//private WindowsMediaPlayer wmPlayer = new WindowsMediaPlayer();

public Form1()
{
InitializeComponent();
}

private void Play_Click(object sender, EventArgs e)
{
wmPlayer.openPlayer(@"C:\SampleVideo.wmv");

}

private void Stop_Click(object sender, EventArgs e)
{
wmPlayer.close();
//wmPlayer.controls.stop();
}
}

thanks
QuestionUrgent Pin
Test27030723-Apr-07 23:36
Test27030723-Apr-07 23:36 
AnswerRe: Urgent Pin
Sathesh Sakthivel23-Apr-07 23:40
Sathesh Sakthivel23-Apr-07 23:40 
GeneralRe: Urgent Pin
Test27030723-Apr-07 23:51
Test27030723-Apr-07 23:51 
GeneralRe: Urgent Pin
Colin Angus Mackay23-Apr-07 23:53
Colin Angus Mackay23-Apr-07 23:53 
AnswerRe: Urgent Pin
Keshav V. Kamat23-Apr-07 23:55
Keshav V. Kamat23-Apr-07 23:55 
GeneralRe: Urgent Pin
Test27030724-Apr-07 0:05
Test27030724-Apr-07 0:05 
GeneralRe: Urgent Pin
Keshav V. Kamat24-Apr-07 0:10
Keshav V. Kamat24-Apr-07 0:10 
AnswerRe: Urgent Pin
CPallini23-Apr-07 23:57
mveCPallini23-Apr-07 23:57 
AnswerRe: Urgent Pin
Nouman Bhatti24-Apr-07 1:08
Nouman Bhatti24-Apr-07 1:08 
Questionmodify xml using editor Pin
praveenkumar palla23-Apr-07 23:05
praveenkumar palla23-Apr-07 23:05 
AnswerRe: modify xml using editor Pin
Fatbuddha 123-Apr-07 23:22
Fatbuddha 123-Apr-07 23:22 
GeneralRe: modify xml using editor Pin
praveenkumar palla24-Apr-07 1:53
praveenkumar palla24-Apr-07 1:53 
GeneralRe: modify xml using editor Pin
Fatbuddha 124-Apr-07 2:49
Fatbuddha 124-Apr-07 2:49 
QuestionWhy I'm not getting Vista style on my listViews? Pin
AngryC23-Apr-07 22:05
AngryC23-Apr-07 22:05 
QuestionBindingSource question, help me Pin
phantanagu23-Apr-07 21:43
phantanagu23-Apr-07 21:43 
AnswerRe: BindingSource question, help me Pin
Keshav V. Kamat24-Apr-07 0:37
Keshav V. Kamat24-Apr-07 0:37 
GeneralRe: BindingSource question, help me Pin
phantanagu24-Apr-07 14:53
phantanagu24-Apr-07 14:53 

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.