You can also use Win32API for this task. Go to the Windows API section and locate the following entries:
ExtractIcon
DrawIcon
These are examples from Erik Moore.
>Is there a way to link the icon property of a form to the icon attached to the project without hardcoding the icon name and location?
>
>For example, I have a class that generates a generic form. I would like the forms icon to be the same as the project that it is currently associated with without having to do something like fmrGeneric.icon = 'c:\project\graphics\icon.ico'
>
>Hope this makes sense.
>
>Thanks in advance for your help,
>
>Russell
ramil
~~ learning to stand still