Click here to Skip to main content
14,972,394 members
Home / Discussions / C#
   

C#

 
AnswerRe: converting Pin
Shyam K Pananghat26-Feb-09 20:30
MemberShyam K Pananghat26-Feb-09 20:30 
QuestionWMI service causes strange behaviour Pin
shabya26-Feb-09 19:59
Membershabya26-Feb-09 19:59 
AnswerRe: WMI service causes strange behaviour Pin
Calin Tatar26-Feb-09 22:32
MemberCalin Tatar26-Feb-09 22:32 
GeneralRe: WMI service causes strange behaviour Pin
shabya26-Feb-09 22:43
Membershabya26-Feb-09 22:43 
QuestionDrag Drop listView Imagelist Images..... [modified] Pin
S K Y26-Feb-09 19:45
MemberS K Y26-Feb-09 19:45 
AnswerRe: Drag Drop listView Imagelist Images..... Pin
Calin Tatar26-Feb-09 22:26
MemberCalin Tatar26-Feb-09 22:26 
GeneralRe: Drag Drop listView Imagelist Images..... Pin
S K Y1-Mar-09 2:16
MemberS K Y1-Mar-09 2:16 
AnswerRe: Drag Drop listView Imagelist Images..... Pin
STeAlth-S26-Feb-09 23:17
MemberSTeAlth-S26-Feb-09 23:17 
You try to assign empty image list in your code. That's why items in the second list view have no images.
I think the simplest way to solve it is to assign the same image list for the second ListView in the "import".

private void import(object sender, EventArgs e)
{
    ...
    this.listView2.LargeImageList=this.listView1.LargeImageList = imageList;

}


...And remove strings where you assign empty image list

private void listView2_DragDrop(object sender, DragEventArgs e)
{
    ...
     this.listView2.LargeImageList = imageList;
}


...And in conclusion the folowing loop is meaningless

foreach (ListViewItem each in listView1.SelectedItems)
{
    listView2.Items.Add(item.Text, item.ImageIndex);

    //imageList.Images.Add(item.ImageIndex);
    listView2.TileSize = new System.Drawing.Size(100, 80);
}

GeneralRe: Drag Drop listView Imagelist Images..... Pin
S K Y1-Mar-09 2:43
MemberS K Y1-Mar-09 2:43 
GeneralRe: Drag Drop listView Imagelist Images..... Pin
S K Y1-Mar-09 2:50
MemberS K Y1-Mar-09 2:50 
Questionproject Pin
shobansama26-Feb-09 19:41
Membershobansama26-Feb-09 19:41 
AnswerRe: project Pin
Christian Graus26-Feb-09 20:16
protectorChristian Graus26-Feb-09 20:16 
GeneralRe: project Pin
CPallini26-Feb-09 22:16
mveCPallini26-Feb-09 22:16 
AnswerRe: project Pin
abdul jalil1-Mar-09 4:14
Memberabdul jalil1-Mar-09 4:14 
Questionstring to datetime conversion ? Pin
Aghosh Babu26-Feb-09 19:28
MemberAghosh Babu26-Feb-09 19:28 
AnswerRe: string to datetime conversion ? Pin
Shyam K Pananghat26-Feb-09 20:13
MemberShyam K Pananghat26-Feb-09 20:13 
AnswerRe: string to datetime conversion ? Pin
Vikram A Punathambekar26-Feb-09 20:55
MemberVikram A Punathambekar26-Feb-09 20:55 
GeneralRe: string to datetime conversion ? Pin
Aghosh Babu26-Feb-09 21:01
MemberAghosh Babu26-Feb-09 21:01 
GeneralRe: string to datetime conversion ? Pin
J4amieC26-Feb-09 21:51
MemberJ4amieC26-Feb-09 21:51 
Questionhow to pass parameters to a delegate Pin
prasadbuddhika26-Feb-09 19:20
Memberprasadbuddhika26-Feb-09 19:20 
AnswerRe: how to pass parameters to a delegate Pin
Shyam K Pananghat26-Feb-09 20:04
MemberShyam K Pananghat26-Feb-09 20:04 
GeneralRe: how to pass parameters to a delegate Pin
prasadbuddhika26-Feb-09 20:08
Memberprasadbuddhika26-Feb-09 20:08 
GeneralRe: how to pass parameters to a delegate Pin
Shyam K Pananghat26-Feb-09 20:20
MemberShyam K Pananghat26-Feb-09 20:20 
Questionmessage problem Pin
Sajjad Leo26-Feb-09 18:31
MemberSajjad Leo26-Feb-09 18:31 
AnswerRe: message problem Pin
Christian Graus26-Feb-09 18:50
protectorChristian Graus26-Feb-09 18:50 

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.