Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / May 2004

Tip: Looking for answers? Try searching our database.

How to make component not to apear in toolbox?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Oleg Slyusarchuk - 03 May 2004 20:16 GMT
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 - 03 May 2004 21:28 GMT
Imports System.ComponentModel

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

> I have a component that is a part of a control
> How  make this component NOT be shown  in toolbox?
[quoted text clipped - 3 lines]
> hours trying to figure it out.
> Sorry, if it too simple
Oleg Slyusarchuk - 03 May 2004 23:30 GMT
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......

> Imports System.ComponentModel
>
[quoted text clipped - 11 lines]
> > hours trying to figure it out.
> > Sorry, if it too simple
Bob - 04 May 2004 14:56 GMT
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

> Thank you, Bob
>
[quoted text clipped - 25 lines]
> > > hours trying to figure it out.
> > > Sorry, if it too simple

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.