Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Forms Application menuStrip in Visual Studio 2017 is more covenient than 2019?

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 2017 menuStrip designing

VS 2019 menuStrip designing (sooo uncomfy!): enter image description here

So can I do something to get back to that convenient 2017 editing?

like image 876
vytaute Avatar asked Jul 02 '20 07:07

vytaute


People also ask

How do I create a menustrip in Visual Studio?

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.

How do I create a Windows Forms application in Visual Studio 2017?

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).

What is the difference between menus and menustrip?

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.

How to create a windows form using Visual C++?

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.


1 Answers

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:

enter image description here

.NET 4.7.2 (Zielframework means Target Framework, sorry for the non English version):

enter image description here

like image 97
Mong Zhu Avatar answered Oct 21 '22 04:10

Mong Zhu