I don't think I understand. What do you mean override?
Here's basically what I do.
lnWindowState = oReg.GetKey(HKEY_CURRENT_USER, "Software\MAC\TMR\1.0\Forms\" + ALLTRIM(THIS.Name), "WindowState")
But as you can see, form.Name would not find a key because the last time this form wrote to the registry, it had a different name. I guess I am not clear on how you can keep this from changing at runtime...
>I always override the form.Name property with frmTheForm and I don't have problems with that changing at runtime. My form class uses a key like HKEY_CURRENT_USER\Software\DFSD\CEPASTATUS\frmPlantStatus.Bform without any problems finding it to read/write at runtime.
>
>>My framework remembers reads and writes certain form settings to the registry on load and destroy, so the users preferences are remembered. The keys in the registry are the form's name.
>>
>>This has worked fine until I tried implementing this with a top-level form. The settings are never remembered because the form's name property gets set to a random value.
>>
>>Is this a Windows assignment? Do I have any control over it?
Erik Moore
Clientelligence