473,508 Members | 4,751 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 "ListBoxExtended"

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

Apr 6 '06 #1
3 2078
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.googlegr oups.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
1210
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....
2
1402
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...
1
1610
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...
3
1905
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...
14
1432
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...
2
4029
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...
2
5945
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...
1
999
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...
2
7381
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...
0
7228
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,...
0
7128
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
7332
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
7393
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...
1
7058
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...
0
7502
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...
1
5057
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...
0
4715
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...
1
769
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.