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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:57:46+00:00 2026-05-19T04:57:46+00:00

In C# WinForms I’d like to make a UserControl that mimics the look of

  • 0

In C# WinForms I’d like to make a UserControl that mimics the look of a ToolWindow — sizable, with room for a caption and a close button at the top right. This seems possible through overriding CreateParams(), using the relevant constants from WinUser.h, and adding custom handlers for the appropriate mouse events, but it seems like a lot of trouble for something that simple. Before I go to it, is there an easier way?

  • 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-19T04:57:47+00:00Added an answer on May 19, 2026 at 4:57 am

    Really rather the easiest way is to just use a Form with FormBorderStyle = SizeableToolWindow. That’s what it was made for. Display it with the Show(owner) overload so it is always on top of your main window. If you want to salvage the UserControl then just Dock = Fill in the form. Albeit that exposing its properties get harder to do cleanly.

    Check out Weifenluo’s DockPanel Suite for a windowing model that resembles Visual Studio’s.

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

Sidebar

Related Questions

Winforms-How can I make dialog boxes appear centered on MainForm? That is as opposed
In WinForms, how can I create a UserControl that when I put on my
A WinForms form that includes a UserControl throws an exception when I attempt to
Using winforms in vs2008. I have a DataGridView and I would like to detect
WinForms have those three boxes in the upper right hand corner that minimize, maximize,
C# WinForms: I would like to have two Toolbars But I also want them
We have a WinForms control that is an extended version of ComboBox that supports
What is the winforms control that Visual Studio uses as a properties editor? It
Winforms .net 3.5 app. In my app I have a generic class that looks
WinForms, .NET 3.5 I have a ComboBox that needs to display a growing list

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.