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?
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?