Click here to Skip to main content
15,895,370 members
Home / Discussions / C#
   

C#

 
AnswerRe: x64 & x86 assembly difference. Pin
Daniel Grunwald24-Apr-09 3:15
Daniel Grunwald24-Apr-09 3:15 
Questionbool[] from value Pin
DaveyM6924-Apr-09 0:51
professionalDaveyM6924-Apr-09 0:51 
AnswerRe: bool[] from value Pin
musefan24-Apr-09 1:01
musefan24-Apr-09 1:01 
GeneralRe: bool[] from value Pin
DaveyM6924-Apr-09 1:18
professionalDaveyM6924-Apr-09 1:18 
AnswerRe: bool[] from value Pin
JoeSharp24-Apr-09 1:07
JoeSharp24-Apr-09 1:07 
GeneralRe: bool[] from value Pin
DaveyM6924-Apr-09 1:20
professionalDaveyM6924-Apr-09 1:20 
Questionhow to repeat the files stored in d playlist Pin
mist_psycho24-Apr-09 0:41
mist_psycho24-Apr-09 0:41 
AnswerRe: how to repeat the files stored in d playlist Pin
Henry Minute24-Apr-09 1:18
Henry Minute24-Apr-09 1:18 
create a bool field

bool keepPlaying = true; then<br />
<pre><br />
while (keepPlaying)<br />
{<br />
    pl.Clear() // This might not be exactly correct, look up how to clear the list<br />
    if (files != null)<br />
    {<br />
        if (files.Length <= index)<br />
        {<br />
            index = 0;<br />
        }<br />
        else<br />
        {<br />
            m = axWindowsMediaPlayer1.newMedia(files[index++].FullName);<br />
            pl.appendItem(m);<br />
        }<br />
<br />
    }<br />
<br />
    axWindowsMediaPlayer1.currentPlaylist = pl;<br />
}<br />
<br />
</pre><br />
<br />
then you can have a cancel button and in the <code>onclick
handler have keepPlaying = false;. Of course that will only stop when it reaches the end of the playlist, unless you also stop the player when setting the flag to false.

You are having a lot of problems getting this application working, mostly with concepts that are elementary. I would seriously suggest that you get a C# getting started book and work through it, before continuing.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

QuestionValidate xml against DTD Pin
Rohit16db24-Apr-09 0:25
Rohit16db24-Apr-09 0:25 
Questionswap printer ports Pin
nijix123-Apr-09 23:32
nijix123-Apr-09 23:32 
QuestionDataRow.GetChildRows do not return any rows Pin
Member 411807123-Apr-09 23:28
Member 411807123-Apr-09 23:28 
QuestionWhat is the funda behind the comm component.. ? Pin
ddravin200023-Apr-09 23:15
ddravin200023-Apr-09 23:15 
AnswerRe: What is the funda behind the comm component.. ? Pin
DoctorMick24-Apr-09 0:46
DoctorMick24-Apr-09 0:46 
AnswerRe: What is the funda behind the comm component.. ? Pin
PIEBALDconsult24-Apr-09 3:52
mvePIEBALDconsult24-Apr-09 3:52 
Questionmonitoring whole registry Pin
Gergely Revay23-Apr-09 23:14
Gergely Revay23-Apr-09 23:14 
AnswerRe: monitoring whole registry Pin
Bharat Jain24-Apr-09 2:39
Bharat Jain24-Apr-09 2:39 
GeneralRe: monitoring whole registry Pin
Gergely Revay25-Apr-09 10:14
Gergely Revay25-Apr-09 10:14 
QuestionAbout Water Mark over Existing Video Pin
Abhishek Rana23-Apr-09 21:40
Abhishek Rana23-Apr-09 21:40 
QuestionDiffernce between private readonly fields and non private readonly fields Pin
DJ24523-Apr-09 20:44
DJ24523-Apr-09 20:44 
AnswerRe: Differnce between private readonly fields and non private readonly fields Pin
Ashfield23-Apr-09 20:51
Ashfield23-Apr-09 20:51 
AnswerRe: Differnce between private readonly fields and non private readonly fields Pin
CPallini23-Apr-09 21:41
mveCPallini23-Apr-09 21:41 
AnswerRe: Differnce between private readonly fields and non private readonly fields Pin
PIEBALDconsult24-Apr-09 3:53
mvePIEBALDconsult24-Apr-09 3:53 
Questionhow to read pdf file.... Pin
raj23136223-Apr-09 20:16
raj23136223-Apr-09 20:16 
AnswerRe: how to read pdf file.... Pin
Christian Graus23-Apr-09 20:26
protectorChristian Graus23-Apr-09 20:26 
GeneralRe: how to read pdf file.... Pin
raj23136223-Apr-09 20:39
raj23136223-Apr-09 20:39 

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.