cdtAnimate (cards)
Last changed: -75.165.245.34

.
Summary
Shows the common Pick-Icon-Dialog

C# Signature:

[DllImport("shell32.dll")]
private static extern int PickIconDlg(IntPtr hwndOwner, System.Text.StringBuilder lpstrFile, int nMaxFile, ref int lpdwIconIndex);

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

string iconfile;
int iconindex = 0;
int retval;
System.Text.StringBuilder sb;

iconfile = Environment.GetFolderPath(Environment.SpecialFolder.System);
iconfile = iconfile + @"\shell32.dll";
sb = new System.Text.StringBuilder(iconfile, 500);
retval = PickIconDlg(this.Handle, sb, sb.Length, ref iconindex);
iconfile = sb.ToString();