Hidden custom components

  • Thread starter Thread starter Roman
  • Start date Start date
R

Roman

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
 
Hi Roman,

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

Cor
 
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
 
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
 
Apply the DesignTimeVisible attribute to your Component Class

\\\
Imports System.ComponentModel

<DesignTimeVisible(False)> _
Public Class MyComponent
Inherits Component
...
...
End Class
///
 
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
 
Mick
That is exactly what I need.

Thank you very much,
Roman

"Mick Doherty"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top