Form1.Menu:= MainMenu1;has lot of code: some destroying of menus, some validating handles... Imho at least on Win32 it should be simple code: