Hi Guys,

I have the following problem.
In my Form1 (IsMdiContainer = true) I have added a MenuStrip with the following structure:

System
System->Log In
System->Register
System->Log Out(Visible = false)
Forms(Enabled=False)
Forms->Table1
Forms->Table2
Statistics
Statistics->Blablabl
Statistics->...

From my Log In button I am displaying a form that logs me in the system:
Code:
#include "LogInForm.h"
...
...
private: System::Void logInToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
	LogInForm^form=gcnew LogInForm();
   form->MdiParent = this;
   form->Show();
			 }
In this form when correctly logged in I want to make the System->Log In and System->Register menu items visible = false, the Statistics and Forms menu items enabled.
Here is the code of the login button on successful logging:
Code:
this->MdiParent->MainMenuStrip->Items["formsToolStripMenuItem"]->Enabled = true;
this->MdiParent->MainMenuStrip->Items["statisticsToolStripMenuItem"]->Enabled = true;
this->Close();
Forms and Statistics menu items are correctly being enabled. However with this I am not able to make the System->Log In menu item visible = false;
Code:
this->MdiParent->MainMenuStrip->Items["logInToolStripMenuItem"]->Visible = true;
Can you please help me out. It is quite urgent.

Additional information you might need - I am using MS Visual Studio 2005 and 2008 is not an option here.

Thanks in advance!

Best,
Wisher