Can't put user control onto form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I created a user control by open a window application project, from the project menu, click Add User Control. Then write code to draw the control then saved and built it with no problem. Now when I tried to add the control from toolbox to Form1 of my window application I got the following error msg "The uesr control xxx could not be loaded. Ensure that the library containing the control has been built and a project reference has been made to the library containing the control. ...". The help menu said that there are several ways to employe a user control, the way I did was one of them (I am not using the control class library). As a matter of fact, this is an example from a book. Not sure why it doesn't work. Anyone knows what the problem might be?
 
Hi Gordon,

Though not sure if this applies to your case, is there a possibility that
your User Control project is in a folder location that contains a
'# sign ?. For example: C:\VC#\MyUserControl\
This seems to be an issue as reported in:
http://support.microsoft.com/default.aspx?scid=KB;en-us;322730

Regards,
Aravind C


Gordon said:
Hi,

I created a user control by open a window application project, from the
project menu, click Add User Control. Then write code to draw the control
then saved and built it with no problem. Now when I tried to add the control
from toolbox to Form1 of my window application I got the following error msg
"The uesr control xxx could not be loaded. Ensure that the library
containing the control has been built and a project reference has been made
to the library containing the control. ...". The help menu said that there
are several ways to employe a user control, the way I did was one of them (I
am not using the control class library). As a matter of fact, this is an
example from a book. Not sure why it doesn't work. Anyone knows what the
problem might be?
 
Back
Top