Windows Develop Bookmark and Share   
 index > Windows Forms Designer > can't add inherited user control to my project
 

can't add inherited user control to my project

Hi, when i try to add an inherited user control to my project i get this error

"Could not locate the project item templates for inherited components ".

What is it?

thanks

liuc  Monday, September 24, 2007 11:31 AM

Hi liuc,

sorry that no one has answered before. Have you resolvedthe issue since then?

This is more likely a question about Windows Forms and not about the C# language or the Visual C# IDE features. Have you tried asking in the Windows Forms forums? (http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=2&SiteID=1)

Thanks,

Kirill Osenkov

Kirill Osenkov - MSFT  Wednesday, December 05, 2007 2:44 AM

I've encountered the same problem...

In another forum someone says that the location for project item templates is in "C:\Program Files\Microsoft Visual Studio 8\VB\DesignerTemplates".

I've check this folder andI've found a file named "InheritedTemplate.vb".

Everything seems to be ok but everytime Itry to inherit a form, VS propose the same error. Why?

Please, help me!!

maxwelcomes  Monday, December 31, 2007 4:32 PM

After spending a lot of time trying and trying I've found out the solution.

In folder "C:\Programmi\Microsoft Visual Studio 8\VB\VBWizards\DesignerTemplates" (I indicate the folder in my local installation) there's a subfolder named 1033 that indicate the english language. But my VS version is the italian one.

So, I've copied the folder 1033 and renamed it 1040 (italian language). After restarting VS now I can inherit correctly without any errors.

maxwelcomes  Tuesday, January 01, 2008 6:23 PM
Hi!
I've encountered the same problem...
But my VS version is the portuguese.

I resolved my problem as the same as maxwelcomes, but with the folder 1033 renamed to 1046.

Thanks!!

Shalimar Carla || Research & Development
  • Proposed As Answer byIuri Bhte Wednesday, April 29, 2009 4:46 PM
  •  
Shalimar Carla  Monday, March 23, 2009 12:20 PM
Hello!

My Windows Vista SP1 Portuguese + VS 2008 Service Pack 1 Portuguese

Follow the instructions rename folder 1033 to 1046. Worked!

Thanksss...
Iuri Bhte  Wednesday, April 29, 2009 4:52 PM
Thank you !!!

I had the same problem, I have Visual Studio 2008 in English, but I'm using Windows Server 2008 in Spanish as my OS.

In my case, I had to copy the 3082 folder and rename the copy to 1033 (in "C:\Archivos de Programa\Microsoft Visual Studio 9.0\VB\VBWizards\DesignerTemplates" in my case).
Gustavo Fischer  Monday, October 05, 2009 12:42 PM

You can use google to search for other answers

Custom Search

More Threads

• Switching between languages on a localized form resets bindingsource on form
• Multiple controls in a single DataGridView cell
• Overriding TextBox.WndProc problems
• Workaround for Windows NT Service Control OCX problems with Multithreading from Visual Basic 4-6
• change the font size of ErrorProvider's quickinfo
• Why is VS 2003 Designer Mode so slow in loading some forms?
• Accelator Control,found in VS.net,tabs that move and auto hide
• Specifing the Editor a PropertyGrid should use on a Custom Control Property
• TypeConverter to use a Constant/Property rather than creating a new object?
• Creating Window Menu..