For example, how can I get the icon of the notepad file, such as somefile.txt. I want to get the icon image and assign it to a ListViewItem. I am writing a windows explorer emulator.
Something likes this:
Dim x as Bitmap = new Bitmap(GetIconImage("C:\somefile.txt"))
TreeViewItem1.ImageIndex = ImageList1.Items.Count - 1