How to persistently assign windows function keys

Hi,

I've created a VB program to assign the action of printing a screenshot of the current screen to a function key of choice, but I'm having trouble trying to get the assignment to persist after the program is closed.

So a couple of questions arise:

1. Is this possible to do?
2. If so, does anyone know the way to do it?