Groups | Blog | Home
all groups > dotnet windows forms designtime > may 2004 >

dotnet windows forms designtime : How to make component not to apear in toolbox?


Oleg Slyusarchuk
5/3/2004 2:16:35 PM
I have a component that is a part of a control
How make this component NOT be shown in toolbox?

P.S.
I know there is an attribute, I found it once, now I've spent more than 2
hours trying to figure it out.
Sorry, if it too simple

Bob
5/3/2004 4:28:17 PM
Imports System.ComponentModel

<ToolboxItem(False)> _
Public Class SomeControl
Inherits UserControl
'...
End Class

[quoted text, click to view]
Oleg Slyusarchuk
5/3/2004 5:30:43 PM
Thank you, Bob

It's definitelly right answer to my wrong question.

I DO want my component be in a toolboox.

I don't know a name of the area at the bootom of a form where components are
placed when they are dragged onto a form.
It's exactly a place where I don't want my sub-components of my main
component be placed.

thanks again......


[quoted text, click to view]

Bob
5/4/2004 9:56:46 AM
If you want it to show up in the components area then don't inherit from
Control or UserControl, inherit from Component.

If you need subcomponents of your control to show up in the component area,
you'll need to use a ControlDesigner.

Bob

[quoted text, click to view]
AddThis Social Bookmark Button