Hi All,
I have a wierd problem where everytime I add a mainmenu I have to edit InitializeComponent().
I tried to take a shortcut and copy an existing menu and then rename it. Big mistake. If you have done it, do not do it again.
Anyone have an idea of how to get me back on track?
I have done a rebuild, closed VB etc.![]()
Code:'frmMain ' Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 16.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.AutoSize = True Me.ClientSize = New System.Drawing.Size(902, 513) Me.Controls.Add(Me.ToolBar2) Me.Controls.Add(Me.ToolBar1) Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) Me.IsMdiContainer = True Me.Menu = Me.MainMenu1 Me.Name = "frmMain" Me.WindowState = System.Windows.Forms.FormWindowState.Maximized Me.ResumeLayout(False) Me.PerformLayout()




Reply With Quote