Creating a menubar with 3 options
<p>In C# windows form I am having main menu.Suppose it has 3 buttons/links. named Home,ContactUs, AboutUs.When i click on Home(contains of home should be display with the main menu in the same window) similar is case with ContactUs and AboutUs link. Can any one help me with the code project.</p>

<pre><code>private void toolStripButtonMain_Click(object sender, EventArgs e) {
    try {
        ClassHelper.HideAllForms();
        Home _frmHome = new Home();
        _frmHome.Show();
    } catch (Exception ex) {
    }
}

private void toolStripButtonBooking_Click(object sender, EventArgs e) {
    ClassHelper.HideAllForms();
    Booking _frmBooking = new Booking();
    _frmBooking.MdiParent = this;
    _frmBooking.Show();
}

class ClassHelper {
    public static void HideAllForms() {
        Assembly currentAssembly = Assembly.GetExecutingAssembly();
        int count = Application.OpenForms.Count;

        for(int i = 0; i &lt; count; i++) {
            Form f = Application.OpenForms[i];
            if(f.GetType().Assembly == currentAssembly &amp;&amp; f.Name != "FormBase") {
                f.Close();
                // f.Hide();
            }
        }
    }
}
</code></pre>
