Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Assigning Number To Strings Then Sort Pin
MadDashCoder22-Nov-16 5:23
MadDashCoder22-Nov-16 5:23 
GeneralRe: Assigning Number To Strings Then Sort Pin
Afzaal Ahmad Zeeshan22-Nov-16 5:32
professionalAfzaal Ahmad Zeeshan22-Nov-16 5:32 
AnswerRe: Assigning Number To Strings Then Sort Pin
Gerry Schmitz22-Nov-16 5:35
mveGerry Schmitz22-Nov-16 5:35 
QuestionHow to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Rıza Berkay Ayçelebi21-Nov-16 7:25
Rıza Berkay Ayçelebi21-Nov-16 7:25 
AnswerRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
OriginalGriff21-Nov-16 8:09
mveOriginalGriff21-Nov-16 8:09 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Rıza Berkay Ayçelebi21-Nov-16 8:44
Rıza Berkay Ayçelebi21-Nov-16 8:44 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Dave Kreskowiak21-Nov-16 9:26
mveDave Kreskowiak21-Nov-16 9:26 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Rıza Berkay Ayçelebi21-Nov-16 18:38
Rıza Berkay Ayçelebi21-Nov-16 18:38 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Dave Kreskowiak22-Nov-16 2:32
mveDave Kreskowiak22-Nov-16 2:32 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Pete O'Hanlon21-Nov-16 9:28
mvePete O'Hanlon21-Nov-16 9:28 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Rıza Berkay Ayçelebi21-Nov-16 18:43
Rıza Berkay Ayçelebi21-Nov-16 18:43 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Pete O'Hanlon21-Nov-16 19:42
mvePete O'Hanlon21-Nov-16 19:42 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
OriginalGriff21-Nov-16 21:35
mveOriginalGriff21-Nov-16 21:35 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Rıza Berkay Ayçelebi21-Nov-16 23:19
Rıza Berkay Ayçelebi21-Nov-16 23:19 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
OriginalGriff21-Nov-16 23:24
mveOriginalGriff21-Nov-16 23:24 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Rıza Berkay Ayçelebi22-Nov-16 9:46
Rıza Berkay Ayçelebi22-Nov-16 9:46 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Richard MacCutchan22-Nov-16 10:52
mveRichard MacCutchan22-Nov-16 10:52 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Pete O'Hanlon22-Nov-16 0:35
mvePete O'Hanlon22-Nov-16 0:35 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
OriginalGriff22-Nov-16 1:06
mveOriginalGriff22-Nov-16 1:06 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Eddy Vluggen22-Nov-16 0:17
professionalEddy Vluggen22-Nov-16 0:17 
GeneralRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
OriginalGriff22-Nov-16 0:24
mveOriginalGriff22-Nov-16 0:24 
AnswerRe: How to compress png, bitmap ,or cr2 image file using huffman and RLE with c# Pin
Patrice T22-Nov-16 11:27
mvePatrice T22-Nov-16 11:27 
QuestionWindows Media Player - Play MP3. Pin
ngogiatuong20-Nov-16 20:19
ngogiatuong20-Nov-16 20:19 
Dear all
I create a method to play mp3 base on Text input. I create a playlist and import it to player. but the problem is that, the player plays only 3 files. (and i debugged and found that attributeCount always=3).
Please help for this case.
Below is my code:
C#
private void PlayMP3()
        {
            try
            {
                string strLP = this.textBox1.Text.Trim();
                string strPath = Application.StartupPath;
                WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
                WMPLib.IWMPPlaylist myplaylist = player.playlistCollection.newPlaylist("myplaylist");
                //Clear playlist before create new one.
                myplaylist.clear();
               //Create new playlist
                foreach (char c in strLP)
                {
                    //read
                    string strFileName = "raw\\" + string.Concat(c, ".mp3");
                    string strFileLocation = Path.Combine(strPath, strFileName);
                    WMPLib.IWMPMedia media = player.newMedia(strFileLocation);
                    myplaylist.appendItem(media);
                }
                player.playlistCollection.importPlaylist(myplaylist);
                player.currentPlaylist = myplaylist;
                //Play
                player.controls.play();
               
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

AnswerRe: Windows Media Player - Play MP3. Pin
Afzaal Ahmad Zeeshan20-Nov-16 21:11
professionalAfzaal Ahmad Zeeshan20-Nov-16 21:11 
GeneralRe: Windows Media Player - Play MP3. Pin
ngogiatuong20-Nov-16 22:14
ngogiatuong20-Nov-16 22:14 

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.