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 6882841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:18:20+00:00 2026-05-27T05:18:20+00:00

Must every control in the Visual Studio WinForms toolbox descend from Control ? Does

  • 0

Must every control in the Visual Studio WinForms toolbox descend from Control?

Does Visual Studio support window-less controls?


Every control you add to the Toolbox in Visual Studio:

enter image description here

must1 descend from Control, which is a wrapper around a windowed control.

Unfortunately, Windowed controls are very “heavy”; having a lot of them, especially nested, causes performance in WinForms to suffer.

In the past i’ve dealt with the problem by creating aggregate custom controls. The custom control internally contains other window-less controls:

  • an image (windowless version of a PictureBox)
  • title label (windowless version of a Label)
  • subtitle label (windowless version of a Label)
  • border (windowless version of a Panel)

These are useful to mitigate performance problems in WinForms, but they’re stuck inside code.

i would like to do what other development environments allow, is a version of Control that doesn’t create a Windows window. i would like the ability for the Visual Studio toolbox to accept **window-less* controls.

i know that if i really wanted window-less controls: i should switch to WPF. But that’s overkill.

Does Visual Studio WinForms support window-less controls?

1 or not

  • 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-27T05:18:20+00:00Added an answer on May 27, 2026 at 5:18 am

    Yes and No.

    First, check out this article from the venerable Raymond Chen: http://blogs.msdn.com/b/oldnewthing/archive/2005/02/11/371042.aspx

    Yes. You are welcome to create “controls” that do not derive from Control. I have created several windowless controls in my application that natively support clicking, layering, etc., I draw them to an offscreen buffer, and then paint them directly on some parent Form or Control (such as a PictureBox). This is straightforward to do but not simple, as you will need to manage everything yourself in code.

    No. Any windowless controls will not be supported in the Windows Forms designer for any of the Control-derived controls designers (such as placing them on a Panel or Form) so you won’t have drag-and-drop form design.

    As Hans has pointed out, the ToolStrip and MenuStrip (a windowless control) are such examples. Notice that when you create a new MenuStrip on a Form, the MenuStrip is placed in the Component tray underneath the form. The MenuStrip has a custom set of Designer classes associated with it to support the custom painting and “Type Here” functionality, as well as the dialog boxes to add and remove menu items. Note that the “child” windowless controls, such as the ToolStripButton, are not available in the ToolBox for drag-and-drop support directly onto the form – only the custom designer knows about it. The custom designer for the MenuStrip also supports selecting the child windowless controls so that you can edit the properties of each item in the Properties window.

    I can’t imagine this is suitable for your situation (unless you are creating some controls for resale), but if you are very determined, you can create designer support in much the same way for your set of windowless controls:

    1. Create a class that derives from Component that will be used to manage your Windowless controls. For example, you could call this class WindowlessWidgetManager. After you compile, this control will be in your toolbox. The WindowlessWidgetManager can contain a collection of your windowless controls, and provide painting and other UI support for a canvas such as a Form or PictureBox.
    2. Create a designer class that derives from ComponentDesigner that supports things such adding and removing your custom controls at design time. For more information, see http://msdn.microsoft.com/en-us/library/system.componentmodel.design.componentdesigner(v=VS.90).aspx

    This is a very lengthy process with a number of caveats, but if that is what you wish to achieve, the functionality is there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make an Outlook 2003 add-in using Visual Studio 2008 on
Internet Explorer 8 breaks what must be every 3rd page I look at. The
Working on a project where a sequential set of methods must be run every
I guess there must be an auto reindex every time a delete takes place.
Let's say you work someplace where every change to source code must be associated
I have BaseView which implement UIViewController. Every view in project must implement this BaseView.
t-sql, sql server 2008 My application must check connection status to database every 5
Must Support IE6 and must Validate vs XHTML Strict 1.0! This is tricky to
I'm building a basic web application in ASP.NET 4.0 with C# in Visual Studio
header(Pragma: public); header(Expires: 0); header(Cache-Control: must-revalidate, post-check=0, pre-check=0); header(Cache-Control: private,false); header(Content-type: application/force-download); header(Content-Disposition: attachment;

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.