473,662 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inherited controls don't appear in toolbox

I've created a user control:

Public Class Button
Inherits System.Windows. Forms.UserContr ol

(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

Now such controls don't show up in the toolbox when i open the project on
another computer :/

I can add it with "add/remove items..." by pointing to a COMPILED version of the
project...but is this really the same ?

--
Adam Nowotny
Nov 20 '05 #1
3 1916
CT
Adam,

The controls added to the Toolbox does not come from the loaded projects.
Think about it, if you had installed a third-party product such as the
controls from Infragistics and then someone else without a valid license to
these controls opened up your project in his or her machine and could use
these controls. There's more to it than that, especially the use of license
keys, but essentially controls in the toolbox are specific to the machine on
which your VS .NET setup exists.

--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Adam Nowotny" <ad**@SPAM.logo soft.pl> wrote in message
news:40******** @news.home.net. pl...
I've created a user control:

Public Class Button
Inherits System.Windows. Forms.UserContr ol

(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

Now such controls don't show up in the toolbox when i open the project on
another computer :/

I can add it with "add/remove items..." by pointing to a COMPILED version of the project...but is this really the same ?

--
Adam Nowotny

Nov 20 '05 #2
"Adam Nowotny" <ad**@SPAM.logo soft.pl> schrieb
I've created a user control:

Public Class Button
Inherits System.Windows. Forms.UserContr ol

(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

Now such controls don't show up in the toolbox when i open the
project on another computer :/

I can add it with "add/remove items..." by pointing to a COMPILED
version of the project...but is this really the same ?

Unfortunatelly, only controls derived from Usercontrol automatically appear
in the toolbox. I also wish all my controls are there, but instead we have
to manually add them. This is not only more work, it is annoying because
then the controls are also in the toolbox in other projects. The way it
works with Usercontrols is much better, IMO. :-(
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
Armin Zingler wrote:
Unfortunatelly, only controls derived from Usercontrol automatically appear
in the toolbox. I also wish all my controls are there, but instead we have
to manually add them. This is not only more work, it is annoying because
then the controls are also in the toolbox in other projects. The way it
works with Usercontrols is much better, IMO. :-(


So i guess adding it manually should be ok. Thanks

It still bothers me...:) What is the difference (except for the icons ;))
between usercontrol added automatically by VS and the "same" user control added
manually through "add/remove items" (by pointing to an already compiled DLL) in
the toolbox ?

--
Adam Nowotny
Nov 20 '05 #4

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

Similar topics

10
1852
by: wideopensvt | last post by:
I'm having a display issue with Javascript pages on a new computer. Background colors don't appear within tables or frames in Internet Explorer 6. Example #1: http://www.centurysearch.com/pages/1/index.htm When you go to the page you should see a blue background on the top, left, and right sides. This gives the appearance that the blue navigation bar on the left side of the page stretches to the bottom of the window. The blue doesn't...
1
1177
by: ilPostino | last post by:
Hi, I want to create a control that when dragged from the Toolbar onto a form doesn't appear on the form but instead appears in that magical area below the form. Something similar to a Timer control. Any ideas? Is it possible to create these controls for normal .cs files? (No Designer) The reason I ask is I want to create a control that manipulates any file in the project once dragged onto that file or even the project. Thanks
1
1779
by: Nadav | last post by:
I have a strange problem with inherited controls: I have created two user controls called UserLoginA & UserLoginB. One of the properties of these controls is of type UserGroup ( a class I defined in another assembly). Then I show that UserLoginA & UserLoginB have a lot of common code, so I decided to inherit UserLoginB from UserLoginA. So I Created a new user control UserControlC that inherits from UserLoginA, added the code needed to...
3
4873
by: blaq | last post by:
My latest project is almost done. It looks great in Firefox; I only have two IE bugs left to squash, yay! Please refer to http://www.blaqzone.com/Temp/Popfuel/ . Crib notes: - "reset.css" is a safety net that establishes some basic values. Coded by Matt Wilcox, found at meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-989 ..
4
1731
by: rdemyan via AccessMonster.com | last post by:
Lately I've been noticing that charts that are created in my application don't always appear. When they don't appear, it is a consistent nonappearance. But then if I close the app and reopen it, the charts will now appear. It's as though the OLE call is failing sometimes. No code errors are generated, it's just that when clicking on the button to create the chart, it doesn't appear, even though it should. Has anyone else experienced...
0
877
by: Bill Nicholson | last post by:
I have a FormView control that works correctly until I put the bound controls into this an asp table control: This works fine: <InsertItemTemplate> <asp:TextBox ID="Customer01" runat="server" Text='<%# Bind("Customer") %>' MaxLength="50" TabIndex="50"></asp:TextBox> </InsertItemTemplate>
2
2349
by: hackmagic | last post by:
Hi, i have a form that normally has a Recordset containing only one record bound to it. i have replaced the navigation buttons with my own and the 'New Record' button assigns an empty Recordset to the form and then uses <recordset>.AddNew to create the new record. the query that i use to obtain the empty recordset (so i bind the controls as normal) is: "SELECT TFiles.Id AS FileId, TFiles.* FROM TFiles WHERE TFiles.Id=0" this query is...
0
986
by: =?Utf-8?B?QUNGYWxjb24=?= | last post by:
I have a situation where a need a control that will go into my toolbox that inherits from a third party control (Infragistics UltraWinGrid). I have tried creating a component and wiping out its designer.cs file and putting the initialization code in the .cs file for the component and having the components class inherit from the third parties object's class. That all works except when I use the control in my designer it at first appears...
0
12874
NeoPa
by: NeoPa | last post by:
Introduction: We get fairly frequent questions on here about why settings (including both values AND formatting) of unbound controls on a form, are not stored for reference later, but instead, each setting seems to be applied to EVERY instance of the control, for all records that show. I will try to lay down all the reasoning and arguments that occur to me. Sometimes, it's harder to explain things when they appear to be self-evident. To...
0
8344
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
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
8764
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
8546
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
7367
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
6186
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5654
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1752
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.