?
Solved

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

Posted on 2008-06-09
1
Medium Priority
?
659 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

752 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