Thanks for the reply.
Opened a new project, cut and pasted your code.
I got it to build after adding a reference to system.windows.forms and adding the line 'Using System.Windows.Forms'
Works on the desktop :sign0060: It's just not on the form as CableGuy stated
Device now errors with, (get ready)
An error occured.
File or assembly name
'System.Windows.Forms,
Version=2.0.0.0,
Culyure=neutral,
PublicKeyToken=B77A5C5
61934E089', or one of its
dependencies, was not
found.
If I try to reload the dll I get on the device,
InvalidProgramException on the device :sign0137:
Have I made a reference to windows system.windows.forms and not the .NET system.windows.forms ??
Just deleted the reference and added the .net reference to the file.
No change. Still the same errors.
Don't rush to reply. I'm in no hurry.
Many thanks all the same :sign0188: