Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1078417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:43:16+00:00 2026-05-16T21:43:16+00:00

As an example, here’s a simple attribute, derived from ToolboxItemAttribute: <ToolboxItemX(False)> _ Public Class

  • 0

As an example, here’s a simple attribute, derived from ToolboxItemAttribute:

<ToolboxItemX(False)> _
Public Class Class1
    Inherits Button
End Class

Public Class ToolboxItemXAttribute
    Inherits ToolboxItemAttribute

    Public Sub New(ByVal defaultType As Boolean)
        MyBase.New(defaultType)
    End Sub

End Class

The problem is that when I show the toolbox, Class1 is appearing in it. It’s as if my attribute is ignored, and so the default toolboxitem attribute is used.

I’ve used reflector to look at the logic of ToolboxService.GetToolboxItem and as far as I can see, it should pick up my attribute and see that the item should not be displayed in the toolbox.

PS: I’ve tried resetting the toolbox, closing the ide and reopening etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:43:17+00:00Added an answer on May 16, 2026 at 9:43 pm

    The Windows Forms toolbox is remarkably cranky. This ought to work, but indeed doesn’t. No idea why, this code is locked up inside Visual Studio. As a workaround, you can hide it by using the DesignTimeVisibleAttribute. Like this:

    <ToolboxItemX(False)> _
    <DesignTimeVisible(False)> _
    Public Class Class1
        Inherits Button
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example: Here's a simple class. class Hero { public string faction; public string
I'm following a simple example of how to use the update panel from here
The fictional example here. Suppose I designed a class named IODevice. This class already
for example here in documentation http://api.jquery.com/attribute-contains-selector/ it says $('input[name*=man]') I would write instead $(input[name*='man'])
i have this simple example here : http://jsfiddle.net/pTyvc/1/ i don't want the sub_menu div
Example: Here we have <p class=tab1 current></p> How can I get only the first
From the example here , I kind of know how to create a Flot
I found a C# example here of invoking a PowerShell script asynchronously from a
please help I have a simple example here <script type=text/javascript language=javascript> function test(callback1) {
here's a portion of my code (taken from google charts example here http://code.google.com/apis/chart/image/docs/post_requests.html )

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.