Click here to Skip to main content
15,927,799 members
Home / Discussions / C#
   

C#

 
GeneralRe: sorting an ArrayList with different attributes Pin
Christian Graus4-Dec-06 23:14
protectorChristian Graus4-Dec-06 23:14 
AnswerRe: sorting an ArrayList with different attributes Pin
Russell Jones4-Dec-06 21:02
Russell Jones4-Dec-06 21:02 
QuestionAccessViolationException was Handled Pin
Pokkri4-Dec-06 10:02
Pokkri4-Dec-06 10:02 
AnswerRe: AccessViolationException was Handled Pin
Christian Graus4-Dec-06 10:12
protectorChristian Graus4-Dec-06 10:12 
GeneralRe: AccessViolationException was Handled Pin
Pokkri5-Dec-06 1:08
Pokkri5-Dec-06 1:08 
QuestionFast loading images to a ImageList... Pin
Marcos Hernandez4-Dec-06 8:43
Marcos Hernandez4-Dec-06 8:43 
AnswerRe: Fast loading images to a ImageList... [modified] Pin
Luc Pattyn4-Dec-06 9:08
sitebuilderLuc Pattyn4-Dec-06 9:08 
GeneralRe: Fast loading images to a ImageList... Pin
Marcos Hernandez4-Dec-06 9:46
Marcos Hernandez4-Dec-06 9:46 
mmmm, its faster but... like you said i have the images at disk thumbnalize 3kbytes per image at 32bits jpeg, also i put the imagelist in the same pixelformat, etc... and thats a simply loop that tooks 40-45secs loading 500images, memory its going to 48MB think is not the problem...

<br />
            foreach (StockFile sfile in sf.Files)<br />
            {<br />
                string[] strItems = { sfile.FileName, sfile.Name };<br />
                <br />
                if ( File.Exists( sfile.SmallThumbFileName ) && indexItem<500 ) {<br />
<br />
                    FileStream stream = File.OpenRead(sfile.SmallThumbFileName);<br />
                    Image image1 = Image.FromStream(stream);<br />
                    ThumbWithFrame = new Bitmap(image1);<br />
                    stream.Close();<br />
                    image1.Dispose();<br />
                    fvImageList.Images.Add(ThumbWithFrame);<br />
<br />
                    //fvImageList.Images.Add( Image.FromFile( sfile.SmallThumbFileName ) );<br />
                    lvFiles.Items.Add( new ListViewItem(strItems, fvImageList.Images.Count-1 ) );<br />
                } else {<br />
                    DCRQueue dq = new DCRQueue();<br />
                    dq.sfile = sfile;<br />
                    dq.li = lvFiles.Items.Add( new ListViewItem(strItems, 0) );<br />
                    Thumbs2Do.Enqueue( dq );<br />
                }<br />
<br />
                indexItem++;<br />
            }<br />

GeneralRe: Fast loading images to a ImageList... Pin
Luc Pattyn4-Dec-06 10:13
sitebuilderLuc Pattyn4-Dec-06 10:13 
GeneralRe: Fast loading images to a ImageList... Pin
Marcos Hernandez4-Dec-06 10:15
Marcos Hernandez4-Dec-06 10:15 
QuestionPlease Help me!!!Thanks !!! Pin
vandaivn4-Dec-06 8:21
vandaivn4-Dec-06 8:21 
AnswerRe: Please Help me!!!Thanks !!! Pin
Not Active4-Dec-06 9:30
mentorNot Active4-Dec-06 9:30 
AnswerRe: Please Help me!!!Thanks !!! Pin
Guffa4-Dec-06 10:44
Guffa4-Dec-06 10:44 
Questionhow to add excel like autofilters to datagrid header using c#.net Pin
nalla484-Dec-06 7:20
nalla484-Dec-06 7:20 
QuestionUsing .NET to call Matlab, How to pass array of strings? Pin
Woody Davis4-Dec-06 7:12
Woody Davis4-Dec-06 7:12 
QuestionExposing Children From Persistent Storage Pin
Christian M Jensen4-Dec-06 6:59
Christian M Jensen4-Dec-06 6:59 
AnswerRe: Exposing Children From Persistent Storage [modified] Pin
Pete O'Hanlon4-Dec-06 9:20
mvePete O'Hanlon4-Dec-06 9:20 
QuestionPrintPreview Pin
netJP12L4-Dec-06 5:17
netJP12L4-Dec-06 5:17 
AnswerRe: PrintPreview Pin
Nader Elshehabi4-Dec-06 6:56
Nader Elshehabi4-Dec-06 6:56 
GeneralRe: PrintPreview Pin
netJP12L4-Dec-06 7:55
netJP12L4-Dec-06 7:55 
QuestionRedim multiD-Array Pin
C++NewBe4-Dec-06 4:33
C++NewBe4-Dec-06 4:33 
AnswerRe: Redim multiD-Array Pin
Pete O'Hanlon4-Dec-06 4:59
mvePete O'Hanlon4-Dec-06 4:59 
AnswerRe: Redim multiD-Array Pin
ednrgc4-Dec-06 5:02
ednrgc4-Dec-06 5:02 
GeneralRe: Redim multiD-Array Pin
Dave Doknjas4-Dec-06 13:30
Dave Doknjas4-Dec-06 13:30 
AnswerRe: Redim multiD-Array Pin
Dave Doknjas4-Dec-06 13:29
Dave Doknjas4-Dec-06 13:29 

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.