This might be a solution if you have an application object.
oApp = createobj('classMyAppFramework')
oApp.NewFormIcon = _screen.Icon
read events
...
oNewForm = createobj('myGenericForm')
oNewForm.Icon = oApp.NewFormIcon
HTH.
>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