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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:17:30+00:00 2026-06-04T19:17:30+00:00

I said File->New->Control Library Dropped a ListView on its form, ADDED a new static

  • 0

I said File->New->Control Library

Dropped a ListView on its form, ADDED a new static class to it like this:

namespace WindowsFormsControlLibrary1
{
    public  static class TestClass
    {
        [Category("Appearance")]
        public static Color InsertionMarkColor { get; set; }
    }
}

But I am expecting to a see a property called InsertionMarkColor when I use this in a test application but it doesn’t show there. Why?
Note: If I directly copy-paste that InsertionMarkColor in the source code of the Library, it shows and works but if I want to move it like the code above to a separate class, it doesn’t work…What do you think is missing?

  • 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-04T19:17:31+00:00Added an answer on June 4, 2026 at 7:17 pm

    This worked for me:

    public class MyListView : ListView {
    
      [Category("Appearance")]
      public Color InsertionMarkColor { get; set; }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

They said this expression is valid in C, and that it means calling a
Just like I said, my winform application works properly on computers with VS installed,
I need to call panel.invalidate outside my form (WINform) class also I need to
In this code: Properties prop = new Properties(); prop.load(new FileInputStream(config.properties)); Some properties are loaded,
I need to port the functionality of this one and only one AJAX control
I created a branch new web project: File -> New -> Project -> ASP.NET
Someone on SO said setup source control, it takes 5 minutes. It's taking ages,
Is it possible to somehow 'import' a new Java class into a running program
I'm relatively new to C# and .Net, and this is my first WPF project,
My problem is this: I'm using a WatchService to get notified about new files

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.