473,569 Members | 2,611 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't add UserControl to toolbox, missing reference

I'm trying to add an assembly that has a couple UserControls (among other
things) to the toolbar. When I browse to it, I get a message that it's
can't find an assembly that it needs (ObjectBuilder) - I know my assembly
uses ObjectBuilder, but I don't know what I need to do VS2005 to find it?
Do I need to add it to GAC? I hope not.

I seem to recall being able to drag a user control from the solution
explorer onto a form, but this doesn't appear possible anymore. Can any of
you do this? If so, I may need to reinstall :0(
Apr 20 '06 #1
2 7386
sklett,
It appears that you have some conflicting statements here. First you say
"toolbar", then you say "from solution explorer", and in your title you say
"toolbox".

I don't think you could ever put usercontrols on the Toolbox, only bring
them into Solution Explorer and drag onto a webform from there.

Are we talking about Solution Explorer?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"sklett" wrote:
I'm trying to add an assembly that has a couple UserControls (among other
things) to the toolbar. When I browse to it, I get a message that it's
can't find an assembly that it needs (ObjectBuilder) - I know my assembly
uses ObjectBuilder, but I don't know what I need to do VS2005 to find it?
Do I need to add it to GAC? I hope not.

I seem to recall being able to drag a user control from the solution
explorer onto a form, but this doesn't appear possible anymore. Can any of
you do this? If so, I may need to reinstall :0(

Apr 20 '06 #2
Yeah, a bit confusing, my apologies.
I would like to drag my UserControl onto a Form or UserControl from the
Solution Explorer.
I would also like to have my UserControl appear in the toolbox, if that is
possible.

At this point, I just want to use it in a form and I can't because I can't
drag it from Solution Explorer. I can add it programmaticall y, but I'd like
to drag it in.
"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com > wrote in message
news:B5******** *************** ***********@mic rosoft.com...
sklett,
It appears that you have some conflicting statements here. First you say
"toolbar", then you say "from solution explorer", and in your title you
say
"toolbox".

I don't think you could ever put usercontrols on the Toolbox, only bring
them into Solution Explorer and drag onto a webform from there.

Are we talking about Solution Explorer?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"sklett" wrote:
I'm trying to add an assembly that has a couple UserControls (among other
things) to the toolbar. When I browse to it, I get a message that it's
can't find an assembly that it needs (ObjectBuilder) - I know my assembly
uses ObjectBuilder, but I don't know what I need to do VS2005 to find it?
Do I need to add it to GAC? I hope not.

I seem to recall being able to drag a user control from the solution
explorer onto a form, but this doesn't appear possible anymore. Can any
of
you do this? If so, I may need to reinstall :0(

Apr 20 '06 #3

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

Similar topics

0
1218
by: Saturnin Kepa | last post by:
Hi Everyone, (using VS2003) So here is my problem... I have a class that inherits from the Button control have compiled the project with all references and it does not appear in the Toolbox. The other controls appear just fine. I searched this topic and found a lot of responses but everyone has a different solution to the problem.
3
1967
by: John Smith | last post by:
If i derive from UserControl my Control apears in the toolbox. But I want to extend existing Controls like Button , treecontrol . I found some hints which attributes to set but i didnt succeed till now .. public class ArrowButton : Button
4
2141
by: steve bull | last post by:
I have created a UserControl and added it to my toolbox. It appears in the toolbox with the icon I created for it. The problem is that when I drag the control onto a form no code is generated. If I manually add the code for creating the control to the form everything works fine. I have created other controls w/o problems and cannot see...
1
3603
by: Meir | last post by:
Hello, I'm new in C# and .net, I'm doing the Walkthrough: Creating a Web User Control that comes with Visual Studio .Net 2003. In this Walkthrough you create a User Control and call it from a WebForm, when executing it I get: Compiler Error Message: CS0234: The type or namespace name 'Global' does not exist in the class or namespace...
1
1157
by: Dennis | last post by:
I start a new project (Windows UserControl Library) and Name it "TestControl". I then open the vb code module and change the class name from UserControl1 to "TestControl" and the inheirits to a panel. I then build the solution. I start a new project (Windows Application) and go to the ToolBox UserControl tab, I right click on User Control...
7
2507
by: steve.kaye | last post by:
I am writing a number of controls which use inheritance and I have a problem that I do not know how to solve. It's best if I describe the class structure I want. Grid - derives from UserControl and contains most of the functionality required of a basic grid. ViewGrid, EditGrid and TreeGrid - all derive from Grid The problem I have is...
14
3186
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Hi. I have created a UserControl ("MyUC"). I've put a bunch of instances of that control on a Page ("Defaul.aspx"). The control works fine. Now, I want to be able to use "FindControl()" from within my Default.aspx as follows: MyUC C = (MyUC)this.FindControl("SomeID"); When I try to run this, I get error: "The type or namespace name...
6
1928
by: Johnny Jörgensen | last post by:
I've got a usercontrol derived from a normal ComboBox that contains some special formatting code. On my main form I've got a lot of my custom comboboxes. I discovered a bug in the derived control and fixed it. But it still doesn't work for the controls already added to the form. It works fine for new instances of the control dragged from...
2
2542
by: Academia | last post by:
In an old project I still use MainMenu and ContexMenu. How can I get them to appear in my Toolbox? Thanks
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7974
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.