public MainForm() { tbbOpen = new ToolStripButton(); tbbOpen.Text = "Open"; tbbOpen.ImageKey = "tb_open"; tbbOpen.TextImageRelation = TextImageRelation.ImageAboveText; tbbOpen.Click += new EventHandler(tbbOpen_Click); tbbSave = new ToolStripButton(); tbbSave.Text = "Save"; tbbSave.ImageKey = "tb_save"; tbbSave.TextImageRelation = TextImageRelation.ImageAboveText; tbbSave.Click += new EventHandler(tbbSave_Click); tbbPatchNSD = new ToolStripButton(); tbbPatchNSD.Text = "Patch NSD"; tbbPatchNSD.ImageKey = "tb_patchnsd"; tbbPatchNSD.TextImageRelation = TextImageRelation.ImageAboveText; tbbPatchNSD.Click += new EventHandler(tbbPatchNSD_Click); tbbClose = new ToolStripButton(); tbbClose.Text = "Close"; tbbClose.ImageKey = "tb_close"; tbbClose.TextImageRelation = TextImageRelation.ImageAboveText; tbbClose.Click += new EventHandler(tbbClose_Click); tbsSeparator = new ToolStripSeparator(); tbbFind = new ToolStripButton(); tbbFind.Text = "Find"; tbbFind.ImageKey = "tb_find"; tbbFind.TextImageRelation = TextImageRelation.ImageAboveText; tbbFind.Click += new EventHandler(tbbFind_Click); tbbFindNext = new ToolStripButton(); tbbFindNext.Text = "Find Next"; tbbFindNext.ImageKey = "tb_findnext"; tbbFindNext.TextImageRelation = TextImageRelation.ImageAboveText; tbbFindNext.Click += new EventHandler(tbbFindNext_Click); tbbGoto = new ToolStripButton(); tbbGoto.Text = "Goto EID"; tbbGoto.ImageKey = "tb_goto"; tbbGoto.TextImageRelation = TextImageRelation.ImageAboveText; tbbGoto.Click += new EventHandler(tbbGoto_Click); tsToolbar = new ToolStrip(); tsToolbar.Dock = DockStyle.Top; tsToolbar.ImageList = imglist; tsToolbar.Items.Add(tbbOpen); tsToolbar.Items.Add(tbbSave); tsToolbar.Items.Add(tbbPatchNSD); tsToolbar.Items.Add(tbbClose); tsToolbar.Items.Add(tbsSeparator); tsToolbar.Items.Add(tbbFind); tsToolbar.Items.Add(tbbFindNext); tsToolbar.Items.Add(tbbGoto); tbcTabs = new TabControl(); tbcTabs.Dock = DockStyle.Fill; dlgGameVersion = new GameVersionForm(); this.Width = 640; this.Height = 480; this.Text = "CrashEdit"; this.Controls.Add(tbcTabs); this.Controls.Add(tsToolbar); }