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

C#

 
GeneralRe: x64 & x86 assembly difference. Pin
harold aptroot24-Apr-09 2:52
harold aptroot24-Apr-09 2:52 
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 
the following code plays video files by storing it in a playlist.But it stops when the last file is played. I want the files to play in repeat mode...how can i enable repeat mode, in my code

plz help-----

thanks !!!!



**************************************************************************
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;


namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

System.IO.FileInfo[] files = null;
int index = 0;
string plist;
private void Form1_Load(object sender, EventArgs e)
{
System.IO.DirectoryInfo df = new DirectoryInfo("C://Images");
files = df.GetFiles("*.wma");

WMPLib.IWMPPlaylist pl;
pl = axWindowsMediaPlayer1.mediaCollection.getByName(plist);

WMPLib.IWMPMedia m;
if (files != null)
{
if (files.Length <= index)
{ index = 0; }
else
{
m = axWindowsMediaPlayer1.newMedia(files[index++].FullName);
pl.appendItem(m);
}

}

axWindowsMediaPlayer1.currentPlaylist = pl;



}


}
}
**************************************************************************




----mist-----
AnswerRe: how to repeat the files stored in d playlist Pin
Henry Minute24-Apr-09 1:18
Henry Minute24-Apr-09 1:18 
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 

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.