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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:23:23+00:00 2026-06-14T23:23:23+00:00

I have a class that I am viewing with a property grid with the

  • 0

I have a class that I am viewing with a property grid with the following property:

private Color _borderColor = Color.Black;
[Browsable(true)]
[Category("Appearance")]
[DisplayName("Border Color")]
[Description("The color of the border.")]
[DefaultValue(typeof(Color), "Black")]
public virtual Color BorderColor
{
    get
    {
        return _borderColor;
    }
    set
    {
        if (_borderColor != value)
        {
            _borderColor = value;

            Invalidate();
        }
    }
}

I am having various intermittent problems changing this property using the property grid.

Initially, I am able to open the drop-down popup. But when I pick a color it doesn’t change the property. When debugging, it does not even call the “set” accessor. At this point, even if I type in the name of the color and press Enter, it doesn’t change.

If I deselect the object (which sets the property grid’s selecteditem to null), then re-select the object, I am then able to change the color by typing in its name. But the popup still does not work.

Sometimes it bugs out and the popup won’t even open when you click the dropdown arrow.

EDIT:

It’s specifically a problem with the popup. If I don’t use the popup, I don’t get any glitches. Opening the popup basically suspends the change being committed (sending a PropertyChanged event) until the entire control loses focus. So once I click on another window or another focusable control, the property grid updates the change.

The question is: why does double clicking or pressing enter cause a change commit, but clicking an item in the popup doesn’t?

  • 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-06-14T23:23:25+00:00Added an answer on June 14, 2026 at 11:23 pm

    I figured out what is causing the issue. I have set the window style WS_EX_COMPOSITED on one of the property grid’s parents. Disabling this style results in the PropertyGrid functioning normally again.

    Unfortunately I need this style to reduce flickering in my application. So I will most likely have to use something other than a PropertyGrid to change my object’s properties.

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

Sidebar

Related Questions

I have a Class that has a private variable with a public setter/getter function:
I have created a new class that extends the RelativeLayout and when viewing this
I have class that extend FragmentActivity in it I add fragment to layout as
I have class that looks like this: class A { public: class variables_map vm
I have class that represents users. Users are divided into two groups with different
I have class grades that I need to check if a specific grade is
I have class A such that: class A { static int i; A(); f1();
I have a class that I instantiate to save or load xml data. For
I have a class that has several member classes as attributes. The constructor of
I have a class that gets a movieClip and then using addChild adds it

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.