Hi Aleksey,
Many thanks for looking at that so quickly! It does in fact solve both of the exceptions. However, there still seem to be problems writing out the resources afterwards. If I build a localized version of the executable, I get a deserialization error when I try to open most of the forms - I think probably all the forms that had the exceptions in Radialix before. A few forms without TextBoxes do open.
I get SerializationExceptions like this:
Binary stream does not contain a valid BinaryHeader, 255 [this number varies - has also been 0, 83 and -256] possible causes , invalid stream or object version change between serialisation and deserialisation
The exception comes out of BinaryFormatter, which is called by ResourceManager.GetObject
This happens in the application that was getting the PasswordChar exception.
In the application that was getting the System.Object exception, it dies with an access violation reading 0x00000000 when I try and open one of the more complex forms - not the one that got the exception.
The projects are large, so if necessary I'll plan to try and get something to you that can demonstrate the problem more simply.
Thanks
-Matthew