Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Constructor of type 'typeName' not found
 

Constructor of type 'typeName' not found

Is this a bug?

I got this message in the following circumstances:

UserControl with name"UC1"
Class "UC1" has a constructor with a parameter.
Class "UC1" has a control,"C1",with Modifiers set to Protected

UserControl with name, say, "UC2"
Class "UC2" inherits from class "UC1"

Selecting "View Design" on "UC2" causes the the designer to display an error "Constructor of type <UC1> not found".

Workaround:
Add a constructor to "UC1" that has zero parameters.
KenLayton  Sunday, April 26, 2009 6:54 AM
This is not a bug.

Default constructor is required.

Similar Thread

http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/5a279d22-6dc8-429a-adb8-72a6f34975c8
Thanks, A.m.a.L | [Remember to click "mark as answered" when you get a correct reply to your question]
A.m.a.L - aditi.com - Think Product  Sunday, April 26, 2009 7:00 AM
This is not a bug.

Default constructor is required.

Similar Thread

http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/5a279d22-6dc8-429a-adb8-72a6f34975c8
Thanks, A.m.a.L | [Remember to click "mark as answered" when you get a correct reply to your question]
A.m.a.L - aditi.com - Think Product  Sunday, April 26, 2009 7:00 AM

You can use google to search for other answers

Custom Search

More Threads

• Scroll bar movement
• " WithEvents variables cannot be typed as arrays "
• controls not rendering on the form
• Custom control displays differently in TabPage
• Why is button not showing with rounded edges?
• cross table
• exporting button images
• RootComponentDesigner Add component
• UITypeEditor cannot find dependency dlls that are not in system32
• Input number in TextBox Error When I type Unicode in TextBox ?