Solved

How to hide constituent UserControls in my UserControl VB.NET Project

Posted on 2008-06-09
1
646 Views
Last Modified: 2013-11-26
Hello everyone

As a part of my Software development Project, I built a composite Usercontrol (much like an old Outlook Bar), that's made of several different constituent User Controls. The "OutlookBar" Build and works just fine. The problem I encounter is, that when the corresponding dll is added to the project, all the controls (main and constituent) are added to the toolbox.

How do I show only main Control, and none of the constituent ones in the toolbox?


Thank you
0
Comment
Question by:Endimion
1 Comment
 

Accepted Solution

by:
Endimion earned 0 total points
ID: 21748602
I had already found a solution

There is an attribute called ToolboxItem that defines, whether the control is visible to tohe toolbox or not. If set to false, the control is not visible in the toolbox something like:

Imports System.ComponentModel
<ToolboxItem(False)> Public Class SidePanel
' User code here
End Class


Best regards

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now