473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can't put user control onto form

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?
Nov 15 '05 #1
1 1869
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...B;en-us;322730

Regards,
Aravind C
"Gordon" <an*******@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
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?
Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dan | last post by:
Good Day All, I am having a problem in Visual Studio 2005 Beta 2. I am hoping someone might have an idea as to what is going on. I have an ActiveX User Control written using Visual Basic 6.0....
5
by: Drew | last post by:
I have a user control written in C#. This user control uses some of my mixed mode C++ libraries. My user control is currently residing on a .NET Windows Form. Everything works nicely. Now I am...
4
by: DotNetJunkies User | last post by:
I have created a User Control (a Pareto Chart) using C#. It works great in .Net Windows Apps, but I also need to use it in a Web Application (to view in IE). Everything I read on this seems to be...
3
by: hplloyd | last post by:
I have created a windows user control library and all the controls have been tested and work perfectly. Next i built the project as a release version and stored the final copies onto the...
1
by: RonB | last post by:
Hi All, I have created a user control in my application that I would like to show in the lower left corner of all forms. Basically this control holds information for support (IP, user name,...
1
by: Hrvoje Voda | last post by:
I made a user control and put it onto main form. On the control i have a button that should show another form with grid. I don't know how, i want to show that form on the main form panel. On...
10
by: Benton | last post by:
Hi there, I have a UserControl with a couple of textboxes and a couple of buttons ("Save" and "Cancel"). The Click event for this buttons is in the UserControl's codebehind of course, so here's...
5
by: MLH | last post by:
I have a vehicle entry form with a combo box for choosing the owner. Let's say the user opens the list by clicking the arrow then choose the owner by clicking a name. That much works fine. But...
7
by: Sin Jeong-hun | last post by:
I've using thread a lot in C#, but all of them were just single method with no return value or paramenters. It may sound bizarre but, can't it be a class? I'm writing an Windows application that...
0
Shashi Sadasivan
by: Shashi Sadasivan | last post by:
Hi, I converted some of my form functions as a user control, and it has to work based on a tables specified row (which ispassed to it using the parameter in the constructor) So i make the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.