473,387 Members | 1,575 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,387 software developers and data experts.

Hidden custom components

I have a collection of custom components and using them only in code.
I don't need to see them in designer. Is there a way to hide them?
Thanks,

Roman
Nov 20 '05 #1
6 1151
Hi Roman,

Can you explain it a little bit more what is your goal?

Cor
I have a collection of custom components and using them only in code.
I don't need to see them in designer. Is there a way to hide them?
Thanks,

Roman

Nov 20 '05 #2
Hi Cor

My component A is a collection that acts as collection property B of type A
for another component C.
Using collection editor I am adding new B of type A to component C.
The problem is that I end up seeing all those added A components in the area
below my form.
Is there a way NOT to show the A components?

A good example of what I am trying to do would be SqlCommand component and
its Parameters property. When you add a Parameter it is added behind the
scenes and is NOT visible below the form.

Thanks,
Roman

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:O5**************@TK2MSFTNGP10.phx.gbl...
Hi Roman,

Can you explain it a little bit more what is your goal?

Cor
I have a collection of custom components and using them only in code.
I don't need to see them in designer. Is there a way to hide them?
Thanks,

Roman


Nov 20 '05 #3
Hi Roman,

Just call them in code and not in the designer.
I think that a lot of us never use the designer for components.

By instance the timer is just something as

private mytimer as new system.forms.timer

draging it is more work in my opinion.

I hope this helps?

Cor

My component A is a collection that acts as collection property B of type A for another component C.
Using collection editor I am adding new B of type A to component C.
The problem is that I end up seeing all those added A components in the area below my form.
Is there a way NOT to show the A components?

A good example of what I am trying to do would be SqlCommand component and
its Parameters property. When you add a Parameter it is added behind the
scenes and is NOT visible below the form.

Thanks,
Roman

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:O5**************@TK2MSFTNGP10.phx.gbl...
Hi Roman,

Can you explain it a little bit more what is your goal?

Cor
I have a collection of custom components and using them only in code.
I don't need to see them in designer. Is there a way to hide them?
Thanks,

Roman



Nov 20 '05 #4
Apply the DesignTimeVisible attribute to your Component Class

\\\
Imports System.ComponentModel

<DesignTimeVisible(False)> _
Public Class MyComponent
Inherits Component
...
...
End Class
///
--
Mick Doherty
http://dotnetrix.co.uk
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07/06/2004
Nov 20 '05 #5
Cor

I really need to use the designer and populate my component using collection
editor.
It simplifies the development in this particular case.
Mick's suggestion (see next thread) does what I was looking for.

Thanks,
Roman

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:OJ*************@TK2MSFTNGP10.phx.gbl...
Hi Roman,

Just call them in code and not in the designer.
I think that a lot of us never use the designer for components.

By instance the timer is just something as

private mytimer as new system.forms.timer

draging it is more work in my opinion.

I hope this helps?

Cor

My component A is a collection that acts as collection property B of type
A
for another component C.
Using collection editor I am adding new B of type A to component C.
The problem is that I end up seeing all those added A components in the

area
below my form.
Is there a way NOT to show the A components?

A good example of what I am trying to do would be SqlCommand component

and its Parameters property. When you add a Parameter it is added behind the
scenes and is NOT visible below the form.

Thanks,
Roman

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:O5**************@TK2MSFTNGP10.phx.gbl...
Hi Roman,

Can you explain it a little bit more what is your goal?

Cor

> I have a collection of custom components and using them only in code. > I don't need to see them in designer. Is there a way to hide them?
> Thanks,
>
> Roman
>
>



Nov 20 '05 #6
Mick
That is exactly what I need.

Thank you very much,
Roman

"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote in
message news:%2******************@tk2msftngp13.phx.gbl...
Apply the DesignTimeVisible attribute to your Component Class

\\\
Imports System.ComponentModel

<DesignTimeVisible(False)> _
Public Class MyComponent
Inherits Component
...
...
End Class
///
--
Mick Doherty
http://dotnetrix.co.uk
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07/06/2004

Nov 20 '05 #7

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

Similar topics

0
by: sshuangw | last post by:
Hello: I am encountering a very weird issue with MDI child, Overriden WndProc function and hidden form. Basically, the application has two forms, Form1(parent form), Form2(Child form),...
2
by: glenn | last post by:
I have been looking to no avail for a book, site or something that explains the processes involved with writing my own custom components such as grids, textboxes and such and then registering with...
6
by: Dan | last post by:
Is there a way to access and set a hidden input types in the code-behind page for ASP.Net? This seems like a common thing that would need to be done, I must be missing something obvious. ...
3
by: Jeremy Ames | last post by:
I have a form that contains two hidden values, among other controls. I was wondering, if I change these values in server script and immediately do a server.transfer, do these values get updated...
8
by: pmud | last post by:
Hi, I am using a compare validator in asp.net application(c# code). This Custom validator is used for comparing a value enterd by the user against the primary key in the SQL database. IF the...
11
by: Özden Irmak | last post by:
Hello, In my VB.Net application I create a new instance of my form like : NewForm = new MyNewForm() But with this line, this new form is automatically shown. I want it to be hidden at the...
5
by: ross kerr | last post by:
Hi All, I am extending the combobox to create a control that selects an item based on the text the user is typing into the text area of the control. I have an issue that occurs only when i...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
16
by: AJPlonka | last post by:
Can anyone tell me why this doesn't start hidden? Public Class Form1 Inherits System.Windows.Forms.Form Public Sub New() MyBase.New() InitializeComponent() End Sub Protected Overloads...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...

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.