the problem was that the keycode characters were different in VS 2003 and the target machine. For example, the Keycode for a zero was 40(?) in the KeyPress event in the VB
code in VS2003 but on the target machine, the KeyCode was 96(?). The actual KeyCodes in the example may not be corredt but you get the idea.