The task is as follows: in the listview to make a list of running processes as in the task manager, in general it should be like this: process icon, then its name, on the next line the next process is the same, I use the following test code:

 imgList->Images->Add(System::Drawing::Icon::ExtractAssociatedIcon(System::Diagnostics::Process::GetCurrentProcess()->MainModule->FileName)); listView1->LargeImageList = imgList; listView1->SmallImageList = imgList; listView1->Items->Add("myProcess", 0); 

I deduce for example the name of my process and its icon, the following is displayed: the icon, and below it the name of the process, what I need to change is that there is an icon, and the text with the process name is to the right and the next element is on the next line, not to the right .

    1 answer 1

    Who is interested - is done like this:

     listView1->View = View::Details;