Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version
Go to top

Improvement of the .NET Menu Style class

, 14 Jan 2003
This is an improvement by Francesco Natali over an improvement by Sajith M of the "Visual Studio .NET Menu Style" by Carlos H. Perez
myrtf editor.zip
backimage.jpg
bin
Debug
Release
Icone
about.ico
Application.ico
arrange.ico
binoc.ico
chars.ico
Child.ico
close.ico
copy.ico
cut.ico
delete.ico
find.ico
font.ico
gotonet.ico
lock.ico
lowercase.ico
net.ico
new.ico
open.ico
paste.ico
preference.ico
printer.ico
recentfiles.ico
redo.ico
save.ico
selectedtext.ico
turnoff.ico
undo.ico
uppercase.ico
ModifyRegistry.zip
myRTF Editor.csproj.user
myRTF Editor.suo
paper01.jpg
paper02.jpg
paper03.jpg
myrtfeditor.zip
backimage.jpg
about.ico
Application.ico
arrange.ico
binoc.ico
chars.ico
Child.ico
close.ico
copy.ico
cut.ico
delete.ico
find.ico
font.ico
gotonet.ico
lock.ico
lowercase.ico
net.ico
new.ico
open.ico
paste.ico
preference.ico
printer.ico
recentfiles.ico
redo.ico
save.ico
selectedtext.ico
turnoff.ico
undo.ico
uppercase.ico
ModifyRegistry.zip
myRTF Editor.csproj.user
paper01.jpg
paper02.jpg
paper03.jpg
nicemenu.zip
nicemenu2.zip
prjnicemenu.zip
App.ico
prjNiceMenu.exe
prjNiceMenu.pdb
nicemenu.png
obj
Debug
MenuSample.Form1.resources
prjNiceMenu.exe
prjNiceMenu.exe.incr
prjNiceMenu.NiceMenu.resources
prjNiceMenu.pdb
prjNiceMenu.projdata
prjProvaFunzioni.projdata
temp
TempPE
prjNiceMenu.csproj.user
prjNiceMenu.suo
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
// ---------------
using Utility.NiceMenu;

namespace myRTF_Editor
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class FormMDI : System.Windows.Forms.Form
	{
		private System.Windows.Forms.MenuItem menuItem7;
		private System.Windows.Forms.MenuItem menuItem9;
		private System.Windows.Forms.MenuItem menuItem11;
		private System.Windows.Forms.MenuItem mnuFile;
		private System.Windows.Forms.MenuItem mnuEdit;
		private System.Windows.Forms.MenuItem mnuEdit_Cut;
		private System.Windows.Forms.MenuItem mnuEdit_Copy;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem menuItem5;
		private System.Windows.Forms.MenuItem menuItem17;
		private System.Windows.Forms.MenuItem menuItem18;
		private System.Windows.Forms.MenuItem menuItem19;
		private System.Windows.Forms.MenuItem mnuEdit_Paste;
		private System.Windows.Forms.MenuItem mnuEdit_Delete;
		private System.Windows.Forms.MenuItem mnuEdit_SelectAll;
		private System.Windows.Forms.MenuItem mnuEdit_Find;
		private System.Windows.Forms.MenuItem mnuEdit_Replace;
		private System.Windows.Forms.MenuItem mnuWindow;
		private System.Windows.Forms.MenuItem mnuHelp;
		private System.Windows.Forms.MainMenu mainMenu_FormMDI;
		private System.Windows.Forms.ImageList imageList_FormMDI;
		private System.Windows.Forms.MenuItem menuItem2;
		private System.Windows.Forms.MenuItem menuItem8;
		private System.Windows.Forms.MenuItem menuItem12;
		private System.Windows.Forms.MenuItem menuItem15;
		private System.ComponentModel.IContainer components;
		private System.Windows.Forms.MenuItem mnuFile_New;
		private System.Windows.Forms.MenuItem mnuFile_Open;
		private System.Windows.Forms.MenuItem mnuFile_Save;
		private System.Windows.Forms.MenuItem mnuFile_SaveAs;
		private System.Windows.Forms.MenuItem mnuFile_RecentFiles;
		private System.Windows.Forms.MenuItem mnuFile_PageSetup;
		private System.Windows.Forms.MenuItem mnuFile_Print;
		private System.Windows.Forms.MenuItem mnuFile_Exit;

		private MenuFunctions myMenu = new MenuFunctions();
		private System.Windows.Forms.MenuItem menuItem4;
		private System.Windows.Forms.MenuItem mnuContext_SelectAll;
		private System.Windows.Forms.MenuItem menuItem6;
		private System.Windows.Forms.MenuItem menuItem10;
		private System.Windows.Forms.MenuItem menuItem13;
		private System.Windows.Forms.MenuItem menuItem14;
		private System.Windows.Forms.MenuItem menuItem16;
		private System.Windows.Forms.MenuItem mnuContext_Find;
		private System.Windows.Forms.MenuItem mnuContext_Replace;
		private System.Windows.Forms.MenuItem menuItem20;
		private System.Windows.Forms.MenuItem menuItem21;
		public System.Windows.Forms.ContextMenu contextChildMenu;
		
		public NiceMenu myNiceMenu;
		private System.Windows.Forms.MenuItem menuItem23;
		private System.Windows.Forms.MenuItem menuItem22;
		private System.Windows.Forms.MenuItem menuItem24;
		private System.Windows.Forms.MenuItem menuItem25;
		private System.Windows.Forms.MenuItem menuItem26;
		private System.Windows.Forms.MenuItem menuItem27;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem28;
		private System.Windows.Forms.MenuItem menuItem29;
		private System.Windows.Forms.MenuItem menuItem33;
		private System.Windows.Forms.MenuItem menuItem34;
		private System.Windows.Forms.MenuItem menuItem35;
		private System.Windows.Forms.MenuItem menuItem36;
		private System.Windows.Forms.MenuItem menuItem37;
		private System.Windows.Forms.MenuItem menuItem38;
		private System.Windows.Forms.MenuItem menuItem39;
		private System.Windows.Forms.MenuItem menuItem40;
		private System.Windows.Forms.MenuItem menuItem41;
		private System.Windows.Forms.MenuItem menuItem42;
		private System.Windows.Forms.MenuItem menuItem45;
		private System.Windows.Forms.MenuItem menuItem46;
		private System.Windows.Forms.MenuItem menuItem47;
		private System.Windows.Forms.MenuItem menuItem48;
		private System.Windows.Forms.MenuItem menuItem49;
		private System.Windows.Forms.MenuItem menuItem50;
		private System.Windows.Forms.MenuItem menuItem51;
		private System.Windows.Forms.MenuItem menuItem43;
		private System.Windows.Forms.MenuItem menuItem44;
		private System.Windows.Forms.MenuItem menuItem52;
		private System.Windows.Forms.MenuItem menuItem30;
		private System.Windows.Forms.MenuItem menuItem31;
		private System.Windows.Forms.MenuItem menuItem32;
		private System.Windows.Forms.MenuItem menuItem53;
		private System.Windows.Forms.MenuItem menuItem54;
		private System.Windows.Forms.MenuItem menuItem55;
		private System.Windows.Forms.MenuItem menuItem56;
		public System.Windows.Forms.StatusBar statusBarMDI;
		public NiceMenu myNiceContextMenu;

		public FormMDI()
		{
			InitializeComponent();
			// ---------- MainMenu ----------
			myNiceMenu = new NiceMenu();
			myNiceMenu.MenuImages = imageList_FormMDI;
			myNiceMenu.UpdateMenu(this.mainMenu_FormMDI, new NiceMenuClickEvent(mnuGestioneEventoClick));
			// ---------- ContextMenu ---------
			myNiceContextMenu = new NiceMenu();
			myNiceContextMenu.MenuImages = imageList_FormMDI;
			myNiceContextMenu.UpdateMenu(this.contextChildMenu, new NiceMenuClickEvent(mnuGestioneEventoClick));
			myNiceContextMenu.SelectionColor = Color.AliceBlue;
			myNiceContextMenu.BackColor = Color.White;
			// MenuFunctions 
			myMenu.parentForm = this;
			myMenu.parentImageList = imageList_FormMDI;
			myMenu.parentMenuFunctions = myMenu;
			myMenu.UpdateRecentFileMenu();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				components = this.Container;
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormMDI));
			this.mainMenu_FormMDI = new System.Windows.Forms.MainMenu();
			this.mnuFile = new System.Windows.Forms.MenuItem();
			this.mnuFile_New = new System.Windows.Forms.MenuItem();
			this.mnuFile_Open = new System.Windows.Forms.MenuItem();
			this.menuItem26 = new System.Windows.Forms.MenuItem();
			this.menuItem27 = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.mnuFile_Save = new System.Windows.Forms.MenuItem();
			this.mnuFile_SaveAs = new System.Windows.Forms.MenuItem();
			this.menuItem8 = new System.Windows.Forms.MenuItem();
			this.mnuFile_RecentFiles = new System.Windows.Forms.MenuItem();
			this.menuItem12 = new System.Windows.Forms.MenuItem();
			this.mnuFile_PageSetup = new System.Windows.Forms.MenuItem();
			this.mnuFile_Print = new System.Windows.Forms.MenuItem();
			this.menuItem15 = new System.Windows.Forms.MenuItem();
			this.mnuFile_Exit = new System.Windows.Forms.MenuItem();
			this.mnuEdit = new System.Windows.Forms.MenuItem();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.menuItem28 = new System.Windows.Forms.MenuItem();
			this.menuItem29 = new System.Windows.Forms.MenuItem();
			this.mnuEdit_Cut = new System.Windows.Forms.MenuItem();
			this.mnuEdit_Copy = new System.Windows.Forms.MenuItem();
			this.mnuEdit_Paste = new System.Windows.Forms.MenuItem();
			this.mnuEdit_Delete = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.menuItem22 = new System.Windows.Forms.MenuItem();
			this.menuItem24 = new System.Windows.Forms.MenuItem();
			this.menuItem25 = new System.Windows.Forms.MenuItem();
			this.menuItem23 = new System.Windows.Forms.MenuItem();
			this.mnuEdit_SelectAll = new System.Windows.Forms.MenuItem();
			this.menuItem38 = new System.Windows.Forms.MenuItem();
			this.menuItem39 = new System.Windows.Forms.MenuItem();
			this.menuItem40 = new System.Windows.Forms.MenuItem();
			this.menuItem41 = new System.Windows.Forms.MenuItem();
			this.menuItem42 = new System.Windows.Forms.MenuItem();
			this.menuItem5 = new System.Windows.Forms.MenuItem();
			this.mnuEdit_Find = new System.Windows.Forms.MenuItem();
			this.mnuEdit_Replace = new System.Windows.Forms.MenuItem();
			this.menuItem44 = new System.Windows.Forms.MenuItem();
			this.menuItem52 = new System.Windows.Forms.MenuItem();
			this.mnuWindow = new System.Windows.Forms.MenuItem();
			this.menuItem46 = new System.Windows.Forms.MenuItem();
			this.menuItem47 = new System.Windows.Forms.MenuItem();
			this.menuItem48 = new System.Windows.Forms.MenuItem();
			this.menuItem49 = new System.Windows.Forms.MenuItem();
			this.menuItem50 = new System.Windows.Forms.MenuItem();
			this.menuItem51 = new System.Windows.Forms.MenuItem();
			this.menuItem45 = new System.Windows.Forms.MenuItem();
			this.menuItem43 = new System.Windows.Forms.MenuItem();
			this.mnuHelp = new System.Windows.Forms.MenuItem();
			this.menuItem17 = new System.Windows.Forms.MenuItem();
			this.menuItem18 = new System.Windows.Forms.MenuItem();
			this.menuItem19 = new System.Windows.Forms.MenuItem();
			this.menuItem7 = new System.Windows.Forms.MenuItem();
			this.menuItem9 = new System.Windows.Forms.MenuItem();
			this.menuItem11 = new System.Windows.Forms.MenuItem();
			this.imageList_FormMDI = new System.Windows.Forms.ImageList(this.components);
			this.contextChildMenu = new System.Windows.Forms.ContextMenu();
			this.menuItem30 = new System.Windows.Forms.MenuItem();
			this.menuItem31 = new System.Windows.Forms.MenuItem();
			this.menuItem32 = new System.Windows.Forms.MenuItem();
			this.menuItem53 = new System.Windows.Forms.MenuItem();
			this.menuItem54 = new System.Windows.Forms.MenuItem();
			this.menuItem55 = new System.Windows.Forms.MenuItem();
			this.menuItem56 = new System.Windows.Forms.MenuItem();
			this.menuItem4 = new System.Windows.Forms.MenuItem();
			this.mnuContext_SelectAll = new System.Windows.Forms.MenuItem();
			this.menuItem33 = new System.Windows.Forms.MenuItem();
			this.menuItem34 = new System.Windows.Forms.MenuItem();
			this.menuItem35 = new System.Windows.Forms.MenuItem();
			this.menuItem36 = new System.Windows.Forms.MenuItem();
			this.menuItem37 = new System.Windows.Forms.MenuItem();
			this.menuItem6 = new System.Windows.Forms.MenuItem();
			this.menuItem10 = new System.Windows.Forms.MenuItem();
			this.menuItem13 = new System.Windows.Forms.MenuItem();
			this.menuItem14 = new System.Windows.Forms.MenuItem();
			this.menuItem16 = new System.Windows.Forms.MenuItem();
			this.mnuContext_Find = new System.Windows.Forms.MenuItem();
			this.mnuContext_Replace = new System.Windows.Forms.MenuItem();
			this.menuItem20 = new System.Windows.Forms.MenuItem();
			this.menuItem21 = new System.Windows.Forms.MenuItem();
			this.statusBarMDI = new System.Windows.Forms.StatusBar();
			this.SuspendLayout();
			// 
			// mainMenu_FormMDI
			// 
			this.mainMenu_FormMDI.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																							 this.mnuFile,
																							 this.mnuEdit,
																							 this.mnuWindow,
																							 this.mnuHelp});
			// 
			// mnuFile
			// 
			this.mnuFile.Index = 0;
			this.mnuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.mnuFile_New,
																					this.mnuFile_Open,
																					this.menuItem26,
																					this.menuItem27,
																					this.menuItem2,
																					this.mnuFile_Save,
																					this.mnuFile_SaveAs,
																					this.menuItem8,
																					this.mnuFile_RecentFiles,
																					this.menuItem12,
																					this.mnuFile_PageSetup,
																					this.mnuFile_Print,
																					this.menuItem15,
																					this.mnuFile_Exit});
			this.mnuFile.Text = "File";
			// 
			// mnuFile_New
			// 
			this.mnuFile_New.Index = 0;
			this.mnuFile_New.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
			this.mnuFile_New.Text = "00New";
			// 
			// mnuFile_Open
			// 
			this.mnuFile_Open.Index = 1;
			this.mnuFile_Open.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
			this.mnuFile_Open.Text = "01Open...";
			// 
			// menuItem26
			// 
			this.menuItem26.Index = 2;
			this.menuItem26.Text = "02Close";
			// 
			// menuItem27
			// 
			this.menuItem27.Index = 3;
			this.menuItem27.Text = "Close All";
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 4;
			this.menuItem2.Text = "-";
			// 
			// mnuFile_Save
			// 
			this.mnuFile_Save.Index = 5;
			this.mnuFile_Save.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
			this.mnuFile_Save.Text = "20Save";
			// 
			// mnuFile_SaveAs
			// 
			this.mnuFile_SaveAs.Index = 6;
			this.mnuFile_SaveAs.Text = "Save As...";
			// 
			// menuItem8
			// 
			this.menuItem8.Index = 7;
			this.menuItem8.Text = "-";
			// 
			// mnuFile_RecentFiles
			// 
			this.mnuFile_RecentFiles.Index = 8;
			this.mnuFile_RecentFiles.Text = "03Recent Files";
			// 
			// menuItem12
			// 
			this.menuItem12.Index = 9;
			this.menuItem12.Text = "-";
			// 
			// mnuFile_PageSetup
			// 
			this.mnuFile_PageSetup.Index = 10;
			this.mnuFile_PageSetup.Text = "Page Setup...";
			// 
			// mnuFile_Print
			// 
			this.mnuFile_Print.Index = 11;
			this.mnuFile_Print.Text = "04Print...";
			// 
			// menuItem15
			// 
			this.menuItem15.Index = 12;
			this.menuItem15.Text = "-";
			// 
			// mnuFile_Exit
			// 
			this.mnuFile_Exit.Index = 13;
			this.mnuFile_Exit.Text = "05Exit";
			// 
			// mnuEdit
			// 
			this.mnuEdit.Index = 1;
			this.mnuEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.menuItem1,
																					this.menuItem28,
																					this.menuItem29,
																					this.mnuEdit_Cut,
																					this.mnuEdit_Copy,
																					this.mnuEdit_Paste,
																					this.mnuEdit_Delete,
																					this.menuItem3,
																					this.menuItem22,
																					this.menuItem23,
																					this.mnuEdit_SelectAll,
																					this.menuItem38,
																					this.menuItem5,
																					this.mnuEdit_Find,
																					this.mnuEdit_Replace,
																					this.menuItem44,
																					this.menuItem52});
			this.mnuEdit.Text = "Edit";
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 0;
			this.menuItem1.Shortcut = System.Windows.Forms.Shortcut.CtrlZ;
			this.menuItem1.Text = "06Undo";
			// 
			// menuItem28
			// 
			this.menuItem28.Index = 1;
			this.menuItem28.Shortcut = System.Windows.Forms.Shortcut.CtrlY;
			this.menuItem28.Text = "07Redo";
			// 
			// menuItem29
			// 
			this.menuItem29.Index = 2;
			this.menuItem29.Text = "-";
			// 
			// mnuEdit_Cut
			// 
			this.mnuEdit_Cut.Index = 3;
			this.mnuEdit_Cut.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
			this.mnuEdit_Cut.Text = "08Cut";
			// 
			// mnuEdit_Copy
			// 
			this.mnuEdit_Copy.Index = 4;
			this.mnuEdit_Copy.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
			this.mnuEdit_Copy.Text = "09Copy";
			// 
			// mnuEdit_Paste
			// 
			this.mnuEdit_Paste.Index = 5;
			this.mnuEdit_Paste.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
			this.mnuEdit_Paste.Text = "10Paste";
			// 
			// mnuEdit_Delete
			// 
			this.mnuEdit_Delete.Index = 6;
			this.mnuEdit_Delete.Text = "11Delete";
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 7;
			this.menuItem3.Text = "-";
			// 
			// menuItem22
			// 
			this.menuItem22.Index = 8;
			this.menuItem22.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.menuItem24,
																					   this.menuItem25});
			this.menuItem22.Text = "12Protect";
			// 
			// menuItem24
			// 
			this.menuItem24.Index = 0;
			this.menuItem24.Text = "Entire document";
			// 
			// menuItem25
			// 
			this.menuItem25.Index = 1;
			this.menuItem25.Text = "Selected text";
			// 
			// menuItem23
			// 
			this.menuItem23.Index = 9;
			this.menuItem23.Text = "-";
			// 
			// mnuEdit_SelectAll
			// 
			this.mnuEdit_SelectAll.Index = 10;
			this.mnuEdit_SelectAll.Shortcut = System.Windows.Forms.Shortcut.CtrlA;
			this.mnuEdit_SelectAll.Text = "18Select All";
			// 
			// menuItem38
			// 
			this.menuItem38.Index = 11;
			this.menuItem38.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.menuItem39,
																					   this.menuItem40,
																					   this.menuItem41,
																					   this.menuItem42});
			this.menuItem38.Text = "Change Case";
			// 
			// menuItem39
			// 
			this.menuItem39.Index = 0;
			this.menuItem39.Shortcut = System.Windows.Forms.Shortcut.CtrlU;
			this.menuItem39.Text = "13Upper Case";
			// 
			// menuItem40
			// 
			this.menuItem40.Index = 1;
			this.menuItem40.Shortcut = System.Windows.Forms.Shortcut.CtrlL;
			this.menuItem40.Text = "14Lower Case";
			// 
			// menuItem41
			// 
			this.menuItem41.Index = 2;
			this.menuItem41.Shortcut = System.Windows.Forms.Shortcut.CtrlK;
			this.menuItem41.Text = "Invert Case";
			// 
			// menuItem42
			// 
			this.menuItem42.Index = 3;
			this.menuItem42.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftU;
			this.menuItem42.Text = "Capitalize";
			// 
			// menuItem5
			// 
			this.menuItem5.Index = 12;
			this.menuItem5.Text = "-";
			// 
			// mnuEdit_Find
			// 
			this.mnuEdit_Find.Index = 13;
			this.mnuEdit_Find.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
			this.mnuEdit_Find.Text = "15Find...";
			// 
			// mnuEdit_Replace
			// 
			this.mnuEdit_Replace.Index = 14;
			this.mnuEdit_Replace.Shortcut = System.Windows.Forms.Shortcut.CtrlR;
			this.mnuEdit_Replace.Text = "Replace...";
			// 
			// menuItem44
			// 
			this.menuItem44.Index = 15;
			this.menuItem44.Text = "-";
			// 
			// menuItem52
			// 
			this.menuItem52.Index = 16;
			this.menuItem52.Text = "16Preference...";
			// 
			// mnuWindow
			// 
			this.mnuWindow.Index = 2;
			this.mnuWindow.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem46,
																					  this.menuItem45,
																					  this.menuItem43});
			this.mnuWindow.Text = "Window";
			// 
			// menuItem46
			// 
			this.menuItem46.Index = 0;
			this.menuItem46.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.menuItem47,
																					   this.menuItem48,
																					   this.menuItem49,
																					   this.menuItem50,
																					   this.menuItem51});
			this.menuItem46.Text = "19Arrange";
			// 
			// menuItem47
			// 
			this.menuItem47.Index = 0;
			this.menuItem47.Text = "Cascade";
			// 
			// menuItem48
			// 
			this.menuItem48.Index = 1;
			this.menuItem48.Text = "Tile Horizontally";
			// 
			// menuItem49
			// 
			this.menuItem49.Index = 2;
			this.menuItem49.Text = "Tile Vertically";
			// 
			// menuItem50
			// 
			this.menuItem50.Index = 3;
			this.menuItem50.Text = "-";
			// 
			// menuItem51
			// 
			this.menuItem51.Index = 4;
			this.menuItem51.Text = "Minimize All";
			// 
			// menuItem45
			// 
			this.menuItem45.Index = 1;
			this.menuItem45.Text = "-";
			// 
			// menuItem43
			// 
			this.menuItem43.Index = 2;
			this.menuItem43.Text = "Close All";
			// 
			// mnuHelp
			// 
			this.mnuHelp.Index = 3;
			this.mnuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.menuItem17,
																					this.menuItem18,
																					this.menuItem19});
			this.mnuHelp.Text = "Help";
			// 
			// menuItem17
			// 
			this.menuItem17.Index = 0;
			this.menuItem17.Text = "Index...";
			// 
			// menuItem18
			// 
			this.menuItem18.Index = 1;
			this.menuItem18.Text = "-";
			// 
			// menuItem19
			// 
			this.menuItem19.Index = 2;
			this.menuItem19.Text = "17About...";
			// 
			// menuItem7
			// 
			this.menuItem7.Index = -1;
			this.menuItem7.Text = "-";
			// 
			// menuItem9
			// 
			this.menuItem9.Index = -1;
			this.menuItem9.Text = "-";
			// 
			// menuItem11
			// 
			this.menuItem11.Index = -1;
			this.menuItem11.Text = "-";
			// 
			// imageList_FormMDI
			// 
			this.imageList_FormMDI.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
			this.imageList_FormMDI.ImageSize = new System.Drawing.Size(16, 16);
			this.imageList_FormMDI.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList_FormMDI.ImageStream")));
			this.imageList_FormMDI.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// contextChildMenu
			// 
			this.contextChildMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																							 this.menuItem30,
																							 this.menuItem31,
																							 this.menuItem32,
																							 this.menuItem53,
																							 this.menuItem54,
																							 this.menuItem55,
																							 this.menuItem56,
																							 this.menuItem4,
																							 this.mnuContext_SelectAll,
																							 this.menuItem33,
																							 this.menuItem6,
																							 this.menuItem10,
																							 this.menuItem16,
																							 this.mnuContext_Find,
																							 this.mnuContext_Replace,
																							 this.menuItem20,
																							 this.menuItem21});
			// 
			// menuItem30
			// 
			this.menuItem30.Index = 0;
			this.menuItem30.Text = "06Undo";
			// 
			// menuItem31
			// 
			this.menuItem31.Index = 1;
			this.menuItem31.Text = "07Redo";
			// 
			// menuItem32
			// 
			this.menuItem32.Index = 2;
			this.menuItem32.Text = "-";
			// 
			// menuItem53
			// 
			this.menuItem53.Index = 3;
			this.menuItem53.Text = "08Cut";
			// 
			// menuItem54
			// 
			this.menuItem54.Index = 4;
			this.menuItem54.Text = "09Copy";
			// 
			// menuItem55
			// 
			this.menuItem55.Index = 5;
			this.menuItem55.Text = "10Paste";
			// 
			// menuItem56
			// 
			this.menuItem56.Index = 6;
			this.menuItem56.Text = "11Delete";
			// 
			// menuItem4
			// 
			this.menuItem4.Index = 7;
			this.menuItem4.Text = "-";
			// 
			// mnuContext_SelectAll
			// 
			this.mnuContext_SelectAll.Index = 8;
			this.mnuContext_SelectAll.Text = "18Select All";
			// 
			// menuItem33
			// 
			this.menuItem33.Index = 9;
			this.menuItem33.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.menuItem34,
																					   this.menuItem35,
																					   this.menuItem36,
																					   this.menuItem37});
			this.menuItem33.Text = "Change Case";
			// 
			// menuItem34
			// 
			this.menuItem34.Index = 0;
			this.menuItem34.Text = "13Upper Case";
			// 
			// menuItem35
			// 
			this.menuItem35.Index = 1;
			this.menuItem35.Text = "14Lower Case";
			// 
			// menuItem36
			// 
			this.menuItem36.Index = 2;
			this.menuItem36.Text = "Invert Case";
			// 
			// menuItem37
			// 
			this.menuItem37.Index = 3;
			this.menuItem37.Text = "Capitalize";
			// 
			// menuItem6
			// 
			this.menuItem6.Index = 10;
			this.menuItem6.Text = "-";
			// 
			// menuItem10
			// 
			this.menuItem10.Index = 11;
			this.menuItem10.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.menuItem13,
																					   this.menuItem14});
			this.menuItem10.Text = "12Protect";
			// 
			// menuItem13
			// 
			this.menuItem13.Index = 0;
			this.menuItem13.Text = "Entire document";
			// 
			// menuItem14
			// 
			this.menuItem14.Index = 1;
			this.menuItem14.Text = "Selected text";
			// 
			// menuItem16
			// 
			this.menuItem16.Index = 12;
			this.menuItem16.Text = "-";
			// 
			// mnuContext_Find
			// 
			this.mnuContext_Find.Index = 13;
			this.mnuContext_Find.Text = "15Find...";
			// 
			// mnuContext_Replace
			// 
			this.mnuContext_Replace.Index = 14;
			this.mnuContext_Replace.Text = "Replace...";
			// 
			// menuItem20
			// 
			this.menuItem20.Index = 15;
			this.menuItem20.Text = "-";
			// 
			// menuItem21
			// 
			this.menuItem21.Index = 16;
			this.menuItem21.Text = "02Close";
			// 
			// statusBarMDI
			// 
			this.statusBarMDI.Location = new System.Drawing.Point(0, 255);
			this.statusBarMDI.Name = "statusBarMDI";
			this.statusBarMDI.ShowPanels = true;
			this.statusBarMDI.Size = new System.Drawing.Size(312, 22);
			this.statusBarMDI.TabIndex = 1;
			this.statusBarMDI.Text = "statusBar1";
			// 
			// FormMDI
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(312, 277);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.statusBarMDI});
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.IsMdiContainer = true;
			this.Menu = this.mainMenu_FormMDI;
			this.Name = "FormMDI";
			this.Text = " :: RtF Editx ::";
			this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
			this.Load += new System.EventHandler(this.Form1_Load);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new FormMDI());
		}

		private void Form1_Load(object sender, System.EventArgs e)
		{
			// When the program starts 
			// a new window is created
			myMenu.MenuSelected("New");
		}

		public void mnuGestioneEventoClick(object sender, System.EventArgs e)
		{
			NiceMenu item = (NiceMenu)sender;
			// Witch menu has been selected ?
			myMenu.MenuSelected(item.Text);
			// UpdateMDIMenu
			myMenu.UpdateMDIMenu();
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Francesco Natali
Web Developer
Italy Italy
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 15 Jan 2003
Article Copyright 2002 by Francesco Natali
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid