How to: Create component class which doesn't show in a componentbar?

  • Thread starter Thread starter =?ISO-8859-2?Q?Marcin_Grz=EAbski?=
  • Start date Start date
?

=?ISO-8859-2?Q?Marcin_Grz=EAbski?=

Hi All,

How to create *component* class which do now show its
instance in a component bar?

I want to create other class, this *component*
instance collection and i know how to show that
component collection in a designer.
But my problem is to avoid showing any new added
instance of *component* in component bar?

Other complicated (for me) thing: How to store that
collection's modify in code or resources? Are there
any attributes or what?

Thanx

Marcin
 
Hi,

the answer to your first question:
Make the component internal to the assembly (by removing the 'public'
keyword)
(if you are referring to the Toolbox with 'component bar')

I do not completely understand your other questions.
Do you mean persisting a collection at design time (that is, generating
code) ? That's a tough one.

Greetings,

Bram.
 
Hi,

Thanx for reply!
the answer to your first question:
Make the component internal to the assembly (by removing the 'public'
keyword)
(if you are referring to the Toolbox with 'component bar')

My *component bar* is place that lies below the windows form/control
designer eg. place for MainMenu, DataSet...
*Internal* access don't resolve my problem if i want that class
to be public. The nearest to *my component* class is DataColumn.
I've got a collection of DataColumns in DataTable (in DataSet) and
if i add a single column from a designer then i got next entry in a
properties (combo) but my *component bar* does not change.
This is what i want to get: *my component* class and its collection
class as a property of other component-or-control class.
I do not completely understand your other questions.
Do you mean persisting a collection at design time (that is, generating
code) ? That's a tough one.

I want to make a control class with property (e.g. Columns): list of *my
components*. If user change that property at a design time then those
changes should be written in code (e.g. InitializeComponent()) or in
resources (.resx).

I know that it can be tough to code.
Any direction would be very helpful.

Regards

Marcin
 
Back
Top