List of Exercises

How to Use Menu Strip in C# | Visual Studio

	    
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MainMenu
{
  public partial class Form1 : Form
  {
    public Form1()
    {
      InitializeComponent();
      menuStrip1.BackColor = Color.FromArgb(11, 7, 17);
    }

    private void fileMenue_Click(object sender, EventArgs e)
    {
      FormFile f1 = new FormFile();
      f1.TopLevel = false;
      f1.FormBorderStyle = FormBorderStyle.None;
      f1.Dock = DockStyle.Fill;
      if (panel1.Controls.Count > 0)
        panel1.Controls.Clear();
      panel1.Controls.Add(f1);
      f1.BringToFront();
      f1.Show();
    }

    private void editMenue_Click(object sender, EventArgs e)
    {
      FormEdit f1 = new FormEdit();
      f1.TopLevel = false;
      f1.FormBorderStyle = FormBorderStyle.None;
      f1.Dock = DockStyle.Fill;
      if (panel1.Controls.Count > 0)
        panel1.Controls.Clear();
      panel1.Controls.Add(f1);
      f1.BringToFront();
      f1.Show();
    }
  }
}
		
	 


Download the project of Visual Studio 2013 in DropBox Download


How to Use Menu Strip in Visual Studio C#


Video Thumbnail