Click here to Skip to main content
15,903,856 members
Home / Discussions / C#
   

C#

 
AnswerRe: urgent Pin
Keshav V. Kamat24-Apr-07 0:28
Keshav V. Kamat24-Apr-07 0:28 
AnswerRe: urgent Pin
tirumal123124-Apr-07 0:44
tirumal123124-Apr-07 0:44 
Questioncontext menu with textbox Pin
atramard24-Apr-07 0:21
atramard24-Apr-07 0:21 
AnswerRe: context menu with textbox Pin
Rocky#24-Apr-07 1:29
Rocky#24-Apr-07 1:29 
AnswerRe: context menu with textbox Pin
Venk25924-Apr-07 1:49
Venk25924-Apr-07 1:49 
NewsRe: context menu with textbox Pin
atramard24-Apr-07 2:09
atramard24-Apr-07 2:09 
AnswerRe: context menu with textbox Pin
Eagle_Wizard24-Apr-07 2:51
Eagle_Wizard24-Apr-07 2:51 
QuestionDifference Pin
yaminilatha24-Apr-07 0:16
yaminilatha24-Apr-07 0:16 
AnswerRe: Difference Pin
Keshav V. Kamat24-Apr-07 0:24
Keshav V. Kamat24-Apr-07 0:24 
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 

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.