🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #417

Hidding a component class in the toolbox ?

#417
From: OD
Date: Fri, 14 Oct 2005 12:04
22 lines
2776 bytes
Hi all,

I created a serie of non visual components 
(system.ComponentModel.Component) inheriting from one base class.
Everything is ok and working fine, but my base class is listed in the 
toolbox and I want to hide it (because this component is kind of 
"abstract" and there is no need to add it to the toolbox).

In the namespace I tried to set the class as "protected" or "private" 
but this is rejected by the compiler.
I also tried to hide the constructors. It becomes impossible to place 
the component on a form but the component itself is still displayed in 
the toolbox...

Is there an attribute or something to say "this class must not be 
loaded into the palette when the dll is installed in the ide " ?


-- 
Olivier Dahan
MK Query Builder
www.e-naxos.com
Technical Details
Message-ID: <mn.734c7d5a0defc7e3.18651@0e-naxos.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeeder.wxs.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,2e33178f6aa2524a,start
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
Subject: Hidding a component class in the toolbox ?
From: "OD" <OD[.@.]e-naxos.com>
Newsgroups: borland.public.csharpbuilder.language.csharp
Message-ID: <mn.734c7d5a0defc7e3.18651@0e-naxos.com>
Organization: www.e-naxos.com
X-Newsreader: MesNews/1.04.00.00
Date: Fri, 14 Oct 2005 14:04:51 +0200
MIME-Version: 1.0
Face: iVBORw0KGgoAAAANSUhEUgAAAC4AAAApBAMAAAHPlTYqAAAAB3RJTUUH0wwfAAI7FsnlTwAAA
 AlwSFlzAAALEgAACxIB0t1+/AAAAARnQU1BAACxjwv8YQUAAAAVUExURczMzP///5mZmWZmZjNmZpm
 ZzAAzM6IOup8AAAIwSURBVHjaXVOxkuMgDBV46eH20hMBqb0W6XeM4toh462vyOT/P+EEzm5uDmeGe
 Y8nCT0RwA8CrAPoLwLNAeA3AAwaAhD4cYB1IbgywXrRoCcE9ADvBPV4eowSceQSCMwxRR1AgdfeA5J
 S9EeUFt4/AYFhGGVb7rJVON3fR9BmnjtiJg/G10Cj1N0ukh1gHaHtb60WIp2dA2spSxJE60DqDNSAt
 /HxuI8N1Cf4aEDQYeU7IzWg0yFm5htNvYTNcnLb663qxuHse4wsFT8RvtfABXu7GIi8lCXqRcMHgJM
 LdDA5Z6Ed9evI1cCqHRxtxBVs6EAd+PHg6/AC92uTbXh9gYpHwOXB6w682ZZSbl1WjzpypmGP8Zo5c
 +jNGf+L47L3Y6o/8InnQKE3Z8+1XgSIi9VD5ItUD91g9YYyTuguS47ox5+2Reh125QApBk0+h3oLNP
 FZoisEGhSIN1b5bQ4k6k8ee+UyJUVl3Tjc+fRK+X6HMVJcSUT7TxYMJtJvXbPJG+rya0zgZflXqis8
 ORr89gdolgmpvFZ/c8vT3744VE5U5/65ELn19R4u0WWgIIp9TTyihu/ih7nOE/blsLO90TKGuZZPuZ
 ET74FXO3A+yo/eqNlfE7008Ly2FKYSL42ktT4XFIszBdN+M2LXlnctii/BAEphNAmU5srJkYuc2oDk
 wG+XqjT7TJGCA3/rqS2bb1JXi+T8y9+wAlz8Vpr+Z+K832qbbAp54JCypE48Bf1mYlrJKOvfwAAAAB
 JRU5ErkJggg==
Plugin-EXIF: J'utilise schexif de Chasta (http://www.chasta.com/fr/plugin.htm)
Content-Type: text/plain; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 83.193.143.204
X-Trace: newsgroups.borland.com 1129291336 83.193.143.204 (14 Oct 2005 05:02:16 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeeder.wxs.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail