I know how to configure VS 2008 to open Windows stationery controls in code instead of a designer . But I think that I saw a way in which I could do this, with an attribute with which I could decorate the necessary controls. Does anyone know his name? This is especially useful if you want some controls to be open in the designer, and some as C # code.
I think I found that you have already seen this: Brian Ensink Blog . You can use the DesignerCategory attribute to mark the class to choose how to open them:
The magic line you are looking for:
[System.ComponentModel.DesignerCategory ("Code")]
Just put it in front of your manageable derived type and kiss this useless designer goodbye.
Visual Studio 2010
Source: https://habr.com/ru/post/1723765/More articles:JSP custom tag - detects other instances - javaHow to make a div to show scrollbars (without a fixed height)? - htmlHow to create a translucent image using imagemagick - imagemagickManaging large applications with CakePHP - phpshow image in gtkmm from integer array - c ++PHP login / logout question - phpAJAX - when the user leaves the page - good or bad practice / implementation? - javascriptUISearchBar in UITableView - uitableviewJava collection filtering - javaМожно ли запускать циклы в функциональных методах тестирования? - rubyAll Articles