i have an idea of how to do it but it said "you dont have the necesary access" and i even use it like ADM
Edited: i leave that and i found an information https://msdn.microsof*****m/en-us/libr...imagelist.aspx
So i did this from that but i have 2 problems:
1-they always repeat themselves 2 times (the items/process)
2- i dont have any idea for put all de incons in the column i only didi it with simples pictures :P
Code:
Private Sub Listview()
Dim ps() As Process
Try
ps = Process.GetProcesses()
ProcessList.BeginUpdate()
ProcessList.Clear()
ProcessLis*****lumns.Add("Name", 100, HorizontalAlignment.Left)
ProcessLis*****lumns.Add("ID", 60, HorizontalAlignment.Left)
ProcessLis*****lumns.Add("Priority", 60, HorizontalAlignment.Right)
ProcessLis*****lumns.Add("Memory", 100, HorizontalAlignment.Right)
Dim p As Process
For Each p In ps
Dim item As New ListViewItem(p.ProcessName, 0)
item.SubItems.Add(p.Id.ToString())
item.SubItems.Add(p.BasePriority.ToString())
item.SubItems.Add(p.WorkingSet64.ToString())
ProcessList.Items.AddRange(New ListViewItem() {item})
' Create two ImageList objects.
Dim imageListSmall As New ImageList()
Dim imageListLarge As New ImageList()
' Initialize the ImageList objects with bitmaps.
imageListSmall.Images.Add(Bitmap.FromFile("C:\1.png"))
imageListLarge.Images.Add(Bitmap.FromFile("C:\3.png"))
'Assign the ImageList objects to the ListView.
ProcessList.LargeImageList = imageListLarge
ProcessList.SmallImageList = imageListSmall
ProcessList.EndUpdate()
Next p
Catch e As Exception
MessageBox.Show(e.Message)
End Try
End Sub
help?