473,396 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
Nov 15 '05 #1
2 1547
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.
"Marcin Grzębski" <mg*******@taxussi.no.com.spam.pl> wrote in message
news:bv**********@nemesis.news.tpi.pl...
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

Nov 15 '05 #2
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
Nov 15 '05 #3

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

Similar topics

3
by: Alan | last post by:
Gidday people, I had a bit of a problem this morning. I think I've got it sorted now, but I wonder if anyone can shed some light. I have a plain VBS WHS file that instantiates a component that...
3
by: Ian | last post by:
The beginning of my assembly that I am getting the access error from looks like this. ********************************* Imports System.EnterpriseServices Imports System Imports...
2
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class...
0
by: Mark Miller | last post by:
I'm puzzled by this situation. I'm running on Windows XP Pro 2002 SP 2. I started on an ASP.Net project, initially using the standard SmtpServer and MailMessage classes. For testing, I used the...
2
by: Ed Sutton | last post by:
How can a WndProc be created inside a component? Currently I have a WndProc in my frmMain. It looks for WM_DEVICECHANGE messages for connection and removal events for a USB/Serial device. My...
5
by: Wonder | last post by:
How can I create or use the msgobx to show a message without a default button. The user has explicity to click on the button, so the msgbox closes it. Thanks,
2
by: Dimitry | last post by:
I can't figure out how to approach this problem. I would like to have a custom object that will contain some predefined attributes. The simple solution that I know is to create my own class --...
27
by: max | last post by:
Hello, I am a newbye, and I'm trying to write a simple application. I have five tables with three columns; all tables are identical; I need to change some data in the first table and let VB...
1
by: Igor Ladnik | last post by:
We are dealing with .NET server component and COM clients written with VB6 and VBScript. And there are some problems we faced (please see code below). 1. Managed type System Drawing.Color is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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
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...
0
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
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...

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.