I am trying to create Windows Forms Application and add a menuStrip item to my designer window. In VS 2017 you can simply click on the menuStrip and add items, but in VS 2019 you have to add all items manually trought properties -> data -> items. Am I right? Or I should turn on some property on to get back to that 2017 style of adding the elements?
VS 2017 menuStrip designing:
VS 2019 menuStrip designing (sooo uncomfy!):
So can I do something to get back to that convenient 2017 editing?
To create a MenuStrip control at design-time, you simply drag and drop a MenuStrip control from Toolbox to a Form in Visual Studio. After you drag and drop a MenuStrip on a Form, the MenuStrip1 is added to the Form and looks like Figure 1. Once a MenuStrip is on the Form, you can add menu items and set its properties and events.
Open Visual Studio 2017. From the top menu bar, choose File > New > Project. In the New Project dialog box in the left pane, expand Visual C#, and then choose Windows Desktop. In the middle pane, choose Windows Forms App (.NET Framework).
Menus expose functionality to your users by holding commands that are grouped by a common theme. The MenuStrip control was introduced in version 2.0 of the .NET Framework. With the MenuStrip control, you can easily create menus like those found in Microsoft Office.
1, Right click on the project to add a new item, select UI under Visual C++ ,then choose Windows Form: 2, Don't worry, close it and add the following code to the MyForm.cpp: 3, After that, save it and close the Visual Studio, then reopen your Project.
This unfortunate loss of comfort is not due to Visual Studio but to the Difference between Core and .NET Framework. If you create your Windowsforms project under the .NET framework then you will experience the comfort that is shown by your first gif.
If you choose .NET Core, then.... well you experience the loss of comfort. It's not the only loss of comfort that we have to deal with if we decide/are forced to move to Core. But nothing is more constant than change.
This is how it looks in a comparison:
Core:
.NET 4.7.2 (Zielframework means Target Framework, sorry for the non English version):
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With