Hi derez,
I still don't know why you needed to declate the transparent color again when coming back from the ColorPalette.
Attached is a modifyed version of the TestModule program.
There is a new button called 'Draw Test', a click on this button shows a new Form, 'frmTest' with cWhite as transparent color, declared at the beginning of the AppStart routine.
On this form you can draw lines, point - move - release. During move a red line is drawn on the forelayer.
From this form you can call the ColorPalette (with RGB(250,250,250) transparent color) and choose another color, and also White and it works, without setting the transparent color for the 'frmTest' form again.
I choose the transparent color for the ColorPaltte to RGB(250,250,250) to be able to use the true white color also on the forelayer. RGB(250,250,250) looks like white but is not white.
Best regards.