473,750 Members | 2,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inherited UserControls do not in appear in Toolbox (VB.NET 2005)

Dear Newsgroup,
I'm an old VB6.0 developper who switched some time ago to VB.NET 2005.
I really like that new Visual Studio. However, something is going wrong
now and I can't figure out, what it is...
I was playing around with UserControls which are inherited from
standard .NET controls to make myself some transparent controls.
Suddenly I realized that after bulding my project those UserControls do
not appear in the Toolbox anymore. I had before an error which caused
the designer to crash. I've searched MSDN, usenet and web. Uninstalled
..NET Framework 1.1, reinstalled VB.NET 2005 (Express). There seems to
be such a problem about .NET Studio 2003. However, I'm using 2005.
When I open an old project, my UserControls are still there and I can
add new ones. But it won't work in new projects.
Maybe I'm doing something terribly stupid, so I would like to describe
how I think UserControls should be generated. Am I overseeing
something?
1. Open new Windows Application project.
2. Add Class to Project.
3. E.g.:
Public Call1
Public Class ListBoxExtended
Inherits System.Windows. Forms.ListBox
Public Sub TestListBox
Msgbox "Test"
end sub
end class
end class
4. Compile/Build, no erros.
5. Going to Designer: just nothing, no "ListBoxExtende d"

I'm really desperate in the meanwhile. Any hints and comments are
welcome.
Thanks a lot,
Bart

Apr 6 '06 #1
3 2101
Hello Newsgroup,
I have just found out that adding my EXE manually to the Toolbox solves
the problem. Can I switch it somehow on, that just after compiling the
UserControl appears automatically in the Toolbox?
What if I change the inherited UserControl? Do I have to recompile and
readd manually to update the controls on the form? Will I even have to
pull every control again on the form to get new functionality?
Thanks,
Bart (Desperate...)

Apr 6 '06 #2
I believe this is a bug in VB.Net 2003. I finally gave up on adding controls
to the toolbox and just add a reference then instantiate them and add them to
my forms in code. Maybe SP1 for VB.Net 2003 will resolve this bug.
--
Dennis in Houston
"b7******@yahoo .com" wrote:
Hello Newsgroup,
I have just found out that adding my EXE manually to the Toolbox solves
the problem. Can I switch it somehow on, that just after compiling the
UserControl appears automatically in the Toolbox?
What if I change the inherited UserControl? Do I have to recompile and
readd manually to update the controls on the form? Will I even have to
pull every control again on the form to get new functionality?
Thanks,
Bart (Desperate...)

Apr 6 '06 #3

<b7******@yahoo .com> wrote in message
news:11******** **************@ t31g2000cwb.goo glegroups.com.. .
Hello Newsgroup,
I have just found out that adding my EXE manually to the Toolbox solves
the problem. Can I switch it somehow on, that just after compiling the
UserControl appears automatically in the Toolbox?
What if I change the inherited UserControl? Do I have to recompile and
readd manually to update the controls on the form? Will I even have to
pull every control again on the form to get new functionality?
Thanks,
Bart (Desperate...)


I'm in the same VB6 boat that you are in. I have found that a UserControl
once compiled and placed in the toolbox, stays in the toolbox if you
"Rebuild". It's just the first time that you "Build"

GalenS


Apr 6 '06 #4

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

Similar topics

0
1225
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.
2
1419
by: Evan Stone | last post by:
Hello All, I've got two C# UserControls in a standard Windows Application project, but I'd like to be able to add them to my Toolbox so I can start placing them on forms. Unfortunately, it's not really clear how to do this, since all the examples I've found in the documentation seem to show creating a Windows Control Library, building the DLL, then adding it to a test application project.
1
1620
by: Philippe Meunier | last post by:
Ok, I already asked a question similar to this one but didn't found any answer ! I've a solution with 2 projects in it. One of the project contains Usercontrols and Inherited Controls. I work actively on both project, changing the usercontrols and the second project (forms that uses the usercontrols). When I build my solutuion, my user controls become available in the Toolbox under "My user controls", with an icon of a user control, but...
3
1921
by: Adam Nowotny | last post by:
I've created a user control: Public Class Button Inherits System.Windows.Forms.UserControl (at this point VS added this to toolbox on my computer) and then changed MANUALLY (is there any other way to inherit from built-in controls?) to: Public Class Button Inherits System.Windows.Forms.Button
14
1446
by: Graham Blandford | last post by:
Hi there, A quickie I think... If I create a new class that inherits the values of a windows form component class, can there ever be a visual representation of this in the .Net IDE? E.g. if I create a class called 'mytextbox.vb' which inherits the windows.forms.textbox, with some additional functionlity, is there an easier way of adding instances of this derived class to my form than by modifying
2
4041
by: BluDog | last post by:
Hi I have a UserControl called MyUserControl that has the following constructor and InitializeComponent (automatically generated by VS): Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent()
2
5960
by: Noozer | last post by:
This is a stupid question, I know, but I can't figure it out... Someone please embarass me. I have a solution that has a number of usercontrols included. When I add a usercontrol project to the solution the control does not automatically appear in the "My User Controls" toobox. I'm going to the FILE menu and choosing "Add Project -> Add Existing Project" Eventually, after several builds, etc. the control appears in the toolbox,
1
1010
by: João Santa Bárbara | last post by:
Hi all. i have a strange problem i have done a User Control, in wich i have placed a few buttons inside it and place it in an form. in the previous version of .NET (2003), i have try to access the controls property of my usercontrol and there were no controls inside it but now in .NET 2005 i have access the same controls property and it have there all buttons that i have put inside. this is very strange, because anyone can have access...
2
7403
by: sklett | last post by:
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...
0
8999
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9394
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9338
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
3322
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
2
2798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2223
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.