Solved

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

Posted on 2008-06-09
1
642 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

19 Experts available now in Live!

Get 1:1 Help Now