Задайте вопросЗадайте вопрос
 

ОтвеченоThe name 'InitializeComponent' does not exist....

  • 12 сентября 2006 г. 20:06Christian Sparre Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    I'm trying to create a UserControl in a Class Library and it all works just fine. I can see everything in designer, but when I'm trying to build my solution I get the following error.

    The name 'InitializeComponent' does not exist in the current context

    And that's it, as it says I don't have that method in my .cs codebehind file. But the thing is when I create a UserControl in a WinFX Windows Application I can build it just fine, so i must be missing something. I tried removing the method call and that let me build it, but when creating a new instance and adding it to my Grid nothing happend. 

    Any idea what I'm doing wrong.

    I am somewhat new to the .NET platform ( great idea jumping on the .NET 3.0 wagon then huh  ) But I would really like some help on this issue, because I do not have the slightest idea where to go from here.

Ответы

Все ответы