开发者

C# Menu strip is gone in .cs [design]

开发者 https://www.devze.com 2023-03-25 10:25 出处:网络
All my items in my menu strip disapp开发者_如何学Ceared and is blank. Yet all the Code in the Designer portion is there. Is there any way to restore it? Or do I have to manually add it all back in?

All my items in my menu strip disapp开发者_如何学Ceared and is blank. Yet all the Code in the Designer portion is there. Is there any way to restore it? Or do I have to manually add it all back in?

Thanks!


I got it back I just went back into the designer.cs part of the code and re-referenced the original components... ie:
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem});


Try closing the design, recompile, and open the designer again to see if that helps - solved my problem one time.

0

精彩评论

暂无评论...
验证码 换一张
取 消