After applying the new style at runtime, the MainForm of my application creates a new window handle - is there any way to stop this or reassign Handle, as I get tons of the following error:
'System error. Code: 1400. Invalid window handle
Is there a way to manipulate a process that forces a new descriptor to be assigned?
I decided to do this as follows:
My main form created an invisible helper form that never displays, but it has visual components - it threw a descriptor error when trying to redraw these visual components, so I replaced the corresponding components with objects (note that I did not write this code originally).
source
share