Hello
I've got a problem with loading file icons to TreeView. I'm diplaying
only some directories in TreeView (~50 files total), but it's taking a
long time to add them.
Loading is done by [DllImport("Shell32.dll")]...SHGetFileInfo(...) and
it's fast enough, but then doing ImageList.Add(...) is taking up to a
couple of seconds for ~20 icons, which is really bad. Is there any way
to help it? (no delayed loading on expand event and this kind of stuff,
please - it's only about adding (string, Icon) to ImageList).
Writing in c#...