Click here to Skip to main content
15,913,238 members
Home / Discussions / C#
   

C#

 
GeneralC# is the best Pin
Snyp16-Sep-03 12:13
Snyp16-Sep-03 12:13 
GeneralRe: C# is the best Pin
Rickard Andersson2017-Sep-03 1:30
Rickard Andersson2017-Sep-03 1:30 
GeneralRe: C# is the best Pin
Snyp17-Sep-03 1:42
Snyp17-Sep-03 1:42 
GeneralRe: C# is the best Pin
Rickard Andersson2017-Sep-03 2:42
Rickard Andersson2017-Sep-03 2:42 
GeneralRe: C# is the best Pin
Snyp17-Sep-03 11:06
Snyp17-Sep-03 11:06 
GeneralRe: C# is the best Pin
Rickard Andersson2017-Sep-03 21:53
Rickard Andersson2017-Sep-03 21:53 
GeneralRe: C# is the best Pin
Snyp18-Sep-03 10:46
Snyp18-Sep-03 10:46 
GeneralEmbed WindowsMediaPlayer Problem Pin
pahluwalia16-Sep-03 11:46
pahluwalia16-Sep-03 11:46 
Hi ,
I am trying to add a WindowsMediaPlayer Control in my app so that the user can play the audio file from my app page ! I have added the ref to WMPLib.dll.

My code is as follows:

AxWMPLib.AxWindowsMediaPlayer newMedia = new AxWMPLib.AxWindowsMediaPlayer();

ResourceManager resources = new ResourceManager(typeof(testControl));
newMedia.OcxState = ((AxHost.State)(resources.GetObject("newMedia.OcxState")));

newMedia.Enabled = true;
newMedia.Location = new Point(tX, tY);
newMedia.Name = tName;
newMedia.Size = new Size(tW, tH);
thisPanel.Controls.Add(newMedia);
if (tDefault != null) newMedia.URL = tDefault;

newMedia.URL = @"c:\myfile.mp3";


The last line newMedia.URL = @"c:\myfile.mp3" results in InvalidActiveXStateException. I know the filename is correct as I can play it from Explorer.

Any suggestions Confused | :confused: !?!

Thanks,
Paul
GeneralSimple/Stupid Casting Question Pin
MKlucher16-Sep-03 11:13
MKlucher16-Sep-03 11:13 
GeneralRe: Simple/Stupid Casting Question Pin
Travis D. Mathison16-Sep-03 11:43
Travis D. Mathison16-Sep-03 11:43 
GeneralRe: Simple/Stupid Casting Question Pin
Braulio Dez16-Sep-03 21:04
Braulio Dez16-Sep-03 21:04 
GeneralReEdit Data freezes Controls; No Edition possible Pin
STW16-Sep-03 11:01
STW16-Sep-03 11:01 
QuestionHOW TO SPREAD TEXT OVER COLUMNS IN A LISTVIEW IN C# Pin
ARTURO CAJINA16-Sep-03 9:57
ARTURO CAJINA16-Sep-03 9:57 
AnswerRe: HOW TO SPREAD TEXT OVER COLUMNS IN A LISTVIEW IN C# Pin
Alvaro Mendez17-Sep-03 5:58
Alvaro Mendez17-Sep-03 5:58 
GeneralWait Cursor Pin
Joel Matthias16-Sep-03 9:52
Joel Matthias16-Sep-03 9:52 
GeneralSelected Checkbox... Pin
.gonad16-Sep-03 9:28
.gonad16-Sep-03 9:28 
GeneralRe: Selected Checkbox... Pin
Tomas Petricek16-Sep-03 9:44
Tomas Petricek16-Sep-03 9:44 
GeneralRe: Selected Checkbox... Pin
.gonad16-Sep-03 10:46
.gonad16-Sep-03 10:46 
GeneralRe: Selected Checkbox... Pin
Tomas Petricek16-Sep-03 10:56
Tomas Petricek16-Sep-03 10:56 
GeneralCollection Pin
yyf16-Sep-03 8:59
yyf16-Sep-03 8:59 
GeneralNeed help with winforms treeview control Pin
Ramesh11046616-Sep-03 6:26
Ramesh11046616-Sep-03 6:26 
GeneralWindows Forms, Formating Edit Box Pin
Braulio Dez16-Sep-03 4:26
Braulio Dez16-Sep-03 4:26 
GeneralRe: Windows Forms, Formating Edit Box Pin
Alvaro Mendez16-Sep-03 5:09
Alvaro Mendez16-Sep-03 5:09 
GeneralRe: Windows Forms, Formating Edit Box Pin
Braulio Dez16-Sep-03 5:41
Braulio Dez16-Sep-03 5:41 
GeneralRe: Windows Forms, Formating Edit Box Pin
Alvaro Mendez16-Sep-03 6:16
Alvaro Mendez16-Sep-03 6:16 

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.