Reputation: 6830
I have a class that inherits the built in System.Windows.Forms.Panel
class. According to the metadata of the Panel
class, it has an attribute named Designer
. I am assuming this is what is causing my derived class to open in the form designer by default, rather than the code view. Is there a way I can override this attribute so that the file opens in code view?
Upvotes: 1
Views: 389
Reputation: 6830
I've found the answer. Thanks goes to Visual Studio: Make view code default using attribute.
[System.ComponentModel.DesignerCategory("")]
Upvotes: 1
Reputation: 4207
You could simply right-click and select "View Code" in VS, either in the Solution Explorer or in the designer view.
Upvotes: 0