DataGridViewColumnHeaderCell attempts to open with a designer
-
I have a class derived from a DataGridViewColumnHeaderCell. When I attempt to open the file for viewing, VS attempts to open the file with a designer. I'm not sure what designates the file as having a designer. The DataGridViewColumnHeaderCell doesn't have one. Is there a way to prevent VS from trying to open the file with a designer? My Imports are:
Imports System
Imports System.ComponentModel
Imports System.Windows.Forms.VisualStyles
Imports System.Reflection -
I have a class derived from a DataGridViewColumnHeaderCell. When I attempt to open the file for viewing, VS attempts to open the file with a designer. I'm not sure what designates the file as having a designer. The DataGridViewColumnHeaderCell doesn't have one. Is there a way to prevent VS from trying to open the file with a designer? My Imports are:
Imports System
Imports System.ComponentModel
Imports System.Windows.Forms.VisualStyles
Imports System.ReflectionI guess you've created a user control derived from that class. If you create a vanilla class derived from that class, instead of choosing new user control, that won't occur.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
I guess you've created a user control derived from that class. If you create a vanilla class derived from that class, instead of choosing new user control, that won't occur.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
There is a ListBox as a Private Internal class to my class. This is what VS is seeing and is causing the error. I can do one of the following: 1. Put a simple class derived from Control before my class in its file 2. Move the internal ListBox class to a different file. 3. Make a designer or attach one to my class. Thanks for the help.