Hi
I too have corrected this version of the code, it seems to be much older than other versions you have posted?
Do you have any of the files open with a a different editor, ie notepad ++?
Do you have another instance of Lazarus running that has the Files Open? Check TaskManager
Do you have AUtoHotKey or similar app running, maybe this could be interferring.
Just to eliminate an anti virus application causing issues, canyou exclude your lazarus folder and your application folder from the Anti Virus Scanner.
If I were to rename the form2 to the lblHdrInfotype, it will appear like your code.
If you have entered text into an object inspector field by error and you realize before you press return or click away; the escape key will put it back; as long as it has not acted upon your changes.
Can you please let us know the OS, lazarus version, FPC version and anything else you think ,might be relevent.