_ApplicationPtr msword=WordDocument1->Application; msword->CommandBars->ActiveMenuBar->Visible = false;