Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

785 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