If you would use the KFD and add an icon to a form, you would get an example script that you can use...
Anyway, that is how I did it.