Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
GeneralRe: Voice conference application Pin
yesu prakash1-Mar-09 19:49
yesu prakash1-Mar-09 19:49 
GeneralRe: Voice conference application Pin
ABitSmart1-Mar-09 19:56
ABitSmart1-Mar-09 19:56 
QuestionLIB file error Pin
milapjp1-Mar-09 18:09
milapjp1-Mar-09 18:09 
Questionclosing tcp where socket is connected Pin
A_A1-Mar-09 17:49
A_A1-Mar-09 17:49 
AnswerRe: closing tcp where socket is connected Pin
Bharat Jain1-Mar-09 20:42
Bharat Jain1-Mar-09 20:42 
JokeRe: closing tcp where socket is connected Pin
A_A2-Mar-09 3:37
A_A2-Mar-09 3:37 
Questionadd image into image list using image index ( problem) Pin
S K Y1-Mar-09 15:11
S K Y1-Mar-09 15:11 
AnswerRe: add image into image list using image index ( problem) Pin
Luc Pattyn1-Mar-09 16:22
sitebuilderLuc Pattyn1-Mar-09 16:22 
Hi,

I haven't used ImageList class yet, but I just read some of the documentation, and that helps.
An ImageList has a Images property, which is a collection, meaning you can get one of its members by using an index, you can clear the collection by calling Clear(), and adding to the collection by calling Add(). So this would be my first attempt:

// having a listview that may or may not have some images in its list already,
// and having another list of images, we copy the latter in the former:
foreach(Image image in ImageList1) {
    myListView.Images.Add(image);
}


Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Sunday, June 12, 2011 8:56 AM

GeneralRe: add image into image list using image index ( problem) Pin
S K Y1-Mar-09 21:07
S K Y1-Mar-09 21:07 
AnswerRe: add image into image list using image index ( problem) Pin
Luc Pattyn2-Mar-09 2:24
sitebuilderLuc Pattyn2-Mar-09 2:24 
QuestionDrag Drop Problem Pin
S K Y1-Mar-09 14:28
S K Y1-Mar-09 14:28 
AnswerRe: Drag Drop Problem Pin
STeAlth-S1-Mar-09 18:15
STeAlth-S1-Mar-09 18:15 
GeneralRe: Drag Drop Problem Pin
S K Y1-Mar-09 20:49
S K Y1-Mar-09 20:49 
GeneralRe: Drag Drop Problem Pin
STeAlth-S1-Mar-09 23:03
STeAlth-S1-Mar-09 23:03 
GeneralRe: Drag Drop Problem Pin
S K Y2-Mar-09 2:03
S K Y2-Mar-09 2:03 
QuestionWhat the heck? Pin
Paul Brower1-Mar-09 14:15
Paul Brower1-Mar-09 14:15 
AnswerRe: What the heck? Pin
Luc Pattyn1-Mar-09 14:23
sitebuilderLuc Pattyn1-Mar-09 14:23 
QuestionIndexOf returns wrong value if the string to search for contains characters from the Latin Extended-C range Pin
Gerard van Wilgen1-Mar-09 9:34
Gerard van Wilgen1-Mar-09 9:34 
AnswerRe: IndexOf returns wrong value if the string to search for contains characters from the Latin Extended-C range Pin
Luc Pattyn1-Mar-09 13:18
sitebuilderLuc Pattyn1-Mar-09 13:18 
GeneralRe: IndexOf returns wrong value if the string to search for contains characters from the Latin Extended-C range Pin
Gerard van Wilgen2-Mar-09 10:32
Gerard van Wilgen2-Mar-09 10:32 
Questionproblems creating setup for C# application Pin
laziale1-Mar-09 8:28
laziale1-Mar-09 8:28 
AnswerRe: problems creating setup for C# application Pin
Frank Kerrigan1-Mar-09 9:37
Frank Kerrigan1-Mar-09 9:37 
GeneralRe: problems creating setup for C# application Pin
laziale1-Mar-09 9:59
laziale1-Mar-09 9:59 
Questionvirtual node algorithm Pin
sunnyk861-Mar-09 7:43
sunnyk861-Mar-09 7:43 
AnswerRe: virtual node algorithm Pin
Alan N1-Mar-09 8:02
Alan N1-Mar-09 8:02 

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.