A small bug about .NET

xiaoxiao2021-03-06  38

Yesterday, I played a problem, I suddenly discovered a problem, which is about MAINMENU.

Question Symptom:

Create a Windows Form, then drag a MainMenu inside, then delete it, drag it into it, then edit an item, which means to write something, at this time, when you run, you will find No Menu, what is going on?

problem causes:

It turns out that when Windows is dragging the first mainmenu, it adds a sentence.

THIS.MENU = this. Your menu name;

When deleted, I deleted this, but when I was dragging it for the second time, I won't write this sentence so that Form and MainMenu were separated, so you can't see Menu in Form.

Solution:

Manual addition

This.Menu = this. Your menu name; just fine, there is no way.

I don't know if anyone discovered, don't joke me ...

转载请注明原文地址:https://www.9cbs.com/read-77090.html

New Post(0)