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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:14:58+00:00 2026-05-29T18:14:58+00:00

In Windows.Forms, I was not able to reproduce the exact same TextBox border as

  • 0

In Windows.Forms, I was not able to reproduce the exact same TextBox border as you see it in Vista / 7 Aero. All I get is a gray rectangle instead the slightly sunken gray / blue 3d border. I tried the following methods with no success:

  • VisualStyleRenderer class
  • TextBoxRenderer class
  • Control.DrawToBitmap()
  • P/Invoke with UxTheme and friends
  • Drawing RichTextBox elements instead of TextBox ones

This problem has already been discussed here but with no solution: http://social.msdn.microsoft.com/Forums/hu-HU/winforms/thread/46e66852-b52e-420d-8fe0-b717f86ecb18

It looks like there’s no obvious solution for this problem.
Does anyone know how to draw the exact same border as in Aero?

  • 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-29T18:14:59+00:00Added an answer on May 29, 2026 at 6:14 pm

    It’s probably not going to happen for you.

    I think the VisualStyleRenderer, including the TextBoxRenderer, were more meant for the XP themes.

    Even the Control.DrawToBitmap(...) function magically draws a different version from what is on the screen.

    I don’t have the canonical answer for this, but it’s most likely a result of Microsoft moving on with WPF and leaving behind the WinForm controls with those visual themes half-baked.

    The only answer to this question is to use WPF or use a 3rd party system like DevExpress (which support custom themes) if you need to “theme” all of your controls.

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

Sidebar

Related Questions

This code works in a windows forms application (it shows the preview) but not
I have written a C# Windows Forms application, not a service (it is only
(update) ICustomTypeDescriptor works for my Windows Forms app, but not for Silverlight; Not supported.
I know about Application.Exit() but what if I'm not in a windows forms application
I am developing a forms app (not web) for Windows Mobile, using .NET CF
Windows Forms: For System.Drawing there is a way to get the font height. Font
I am writing a Windows Forms Application in C#. I need to be able
I have a Windows.Forms.ListView where the user shall be able to add and remove
Quick question; In C#, Windows Forms, is it not possible, to have a System.Windows.Forms.TrackBar
When changing the project from console to windows app, I still am not able

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.