private void showDetails()
{
// show the link's details:
lblShortCut.Text = System.IO.Path.GetFileName(link.ShortCutFile);
txtTarget.Text = link.Target;
txtArguments.Text = link.Arguments;
txtDescription.Text = link.Description;
txtIconFile.Text = link.IconPath;
txtIconIndex.Text = (link.IconPath.Length > 0 ? link.IconIndex.ToString() : "");
System.Drawing.Icon linkIcon = link.LargeIcon;
if (linkIcon != null)
{
picIcon.Image = linkIcon.ToBitmap();
linkIcon.Dispose();
}
else
{
picIcon.Image = null;
}
linkIcon = link.SmallIcon;
if (linkIcon != null)
{
picSmallIcon.Image = linkIcon.ToBitmap();
linkIcon.Dispose();
}
else
{
picSmallIcon.Image = null;
}
}