Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Does it really exist? (System.ComponentModel.Design.ComponentDesigner)
 

Does it really exist? (System.ComponentModel.Design.ComponentDesigner)

I know it seams stupid to ask this question, but I have some problems using the class mentioned above.

I was learning how to create control designers, I am using the .NET framework 1.1 Final Beta, and Microsoft Visual Studio .NET 2003 Final Beta, I've created a new class and I was trying to inherit the (System.ComponentModel.Design.ComponentDesigner) class, as the following:

public class myClass : System.ComponentModel.Design.ComponentDesigner
{
public myClass()
{
//
// TODO: Add constructor logic here
//
}
}


Unfortunately, I've received this error message:

(C:\...\myClass.cs(13): The type or namespace name 'ComponentDesigner' does not exist in the class or namespace 'System.ComponentModel.Design' (are you missing an assembly reference?))


Can you believe it :-)

Well, according to the error message, this class does not exist, but according to MSDN, the class does exist, and this is a link describing the class:

http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemComponentModelDesignComponentDesignerClassTopic.asp?frame=true

So does it exists or not, and if it does, can I use it for my windows controls library?, and if it does not, what is the best class to use for a windows controls library?

MigrationUser 1  Monday, March 17, 2003 9:44 AM
i'm no expert, but looking through the help, it seems very misleading.

have you tried inheriting from System.Windows.Forms.Design.ControlDesigner?
MigrationUser 1  Monday, March 17, 2003 10:21 AM
Did you add a reference to System.Design.dll in your project ?
MigrationUser 1  Monday, March 17, 2003 12:00 PM
No I did not. :) , I knew that there is something that I forgot, and here it is (System.Design.dll), I just add it and VS.NET recognized the class, I thought that in VS2003 the references are added automatically. :) 

I normally have such problems when I have a beer and coffee together at the same time before coding. :) (Don’t try it)


Thank you very much; and I hope that I will post my first set of open source themed controls within the next 2 weeks.
MigrationUser 1  Monday, March 17, 2003 1:37 PM

You can use google to search for other answers

Custom Search

More Threads

• setting negative padding for header text in datagridview control.
• Windows Forms Designer
• Retrieving a combobox entry from a supplied index
• Object does not match target type.
• Masked TextBox formatting question
• Trouble Controlling Control resizing at design time
• DLL Components in Windows Forms???
• Always on top
• Showing a Form when the Form name is a String
• Is it possible to filter properties displayed for a CollectionEditor (without using ICustomTypeDescriptor)