Peter, yr suggestion works thanks, but explain me why my solution doesn't work: before Application.Run both forms MainFrm and Login_Dlg are created, when Application.Runs MainFrm.OnActivate event is fired consequently after creation sequence ?
Adalberto