Click here to Skip to main content
15,890,845 members
Home / Discussions / C#
   

C#

 
QuestionOT Pin
Vikram A Punathambekar24-Apr-07 22:42
Vikram A Punathambekar24-Apr-07 22:42 
GeneralRe: Need help in C# prog.... urgent!! Pin
cole2324-Apr-07 23:44
cole2324-Apr-07 23:44 
GeneralRe: Need help in C# prog.... urgent!! Pin
Colin Angus Mackay24-Apr-07 23:57
Colin Angus Mackay24-Apr-07 23:57 
QuestionAccessing the gameport in C# Pin
Lyle261024-Apr-07 20:51
Lyle261024-Apr-07 20:51 
AnswerRe: Accessing the gameport in C# Pin
caix25-Apr-07 15:36
caix25-Apr-07 15:36 
QuestionWindowsMediaPlayer control. Pin
kraj9924-Apr-07 20:47
kraj9924-Apr-07 20:47 
QuestionBinaryReader.ReadString() do not stop reading Pin
jens12345624-Apr-07 20:47
jens12345624-Apr-07 20:47 
QuestionWindowsMediaPlayer control. Pin
kraj9924-Apr-07 20:46
kraj9924-Apr-07 20:46 
I want to open and stop the Video files in the WindowsMediaPlayer through Windows application. I am using a third party GUI software, so I wont be able to add WMPlayer control on to my application. I just need to control the WMPlayer by the code.
The below mentioned sample code is able to open the player and play the Video file. But the stop and close functionalities are not working in this.
Can U please tell me how to control the mediaplayer through code. I want to implement functionalities like 'Pause', 'Fullscreen' etc..

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

QuestionGet the position of IBeam Pin
Adobe200724-Apr-07 20:36
Adobe200724-Apr-07 20:36 
AnswerRe: Get the position of IBeam Pin
Adobe200725-Apr-07 6:36
Adobe200725-Apr-07 6:36 
QuestionError The namespace '' already contains a definition for '?' Pin
cole2324-Apr-07 20:07
cole2324-Apr-07 20:07 
AnswerRe: Error The namespace '' already contains a definition for '?' Pin
xibeifeijian24-Apr-07 20:15
xibeifeijian24-Apr-07 20:15 
AnswerRe: Error The namespace '' already contains a definition for '?' Pin
Vikram A Punathambekar24-Apr-07 20:53
Vikram A Punathambekar24-Apr-07 20:53 
QuestionDisplaying a picture Pin
Icarus12324-Apr-07 19:58
Icarus12324-Apr-07 19:58 
AnswerRe: Displaying a picture Pin
xibeifeijian24-Apr-07 20:35
xibeifeijian24-Apr-07 20:35 
GeneralRe: Displaying a picture Pin
Icarus12324-Apr-07 20:51
Icarus12324-Apr-07 20:51 
QuestionDownLoad Data Pin
sujithkumarsl24-Apr-07 19:40
sujithkumarsl24-Apr-07 19:40 
QuestionHelp required in c# Pin
MIsahq24-Apr-07 19:29
MIsahq24-Apr-07 19:29 
AnswerRe: Help required in c# Pin
Rocky#24-Apr-07 19:38
Rocky#24-Apr-07 19:38 
GeneralRe: Help required in c# Pin
MIsahq24-Apr-07 20:17
MIsahq24-Apr-07 20:17 
GeneralRe: Help required in c# Pin
Rocky#24-Apr-07 20:53
Rocky#24-Apr-07 20:53 
QuestionHow to set transperency of an image in C# Pin
dudedotnet24-Apr-07 18:11
dudedotnet24-Apr-07 18:11 
QuestionRichTextBox find text Pin
Adobe200724-Apr-07 17:26
Adobe200724-Apr-07 17:26 
AnswerRe: RichTextBox find text Pin
Adobe200724-Apr-07 17:38
Adobe200724-Apr-07 17:38 
GeneralRe: RichTextBox find text Pin
Patrick Etc.24-Apr-07 18:02
Patrick Etc.24-Apr-07 18:02 

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.