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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:38:03+00:00 2026-05-26T20:38:03+00:00

Is there some open source code already written out there somewhere that will accept

  • 0

Is there some open source code already written out there somewhere that will accept a class with properties and validation attributes, and output a Windows form with controls that correspond to those properties?

Examples:

public bool IsRed { get; set; }

produces a checkbox with an Is Red? label.

public int NumberOfDays { get; set; }

produces a text box with a label called Number of Days and restricts input to numeric characters only.

[Required]
public Color Color { get; set; }

where Color is an enum of the form

public enum Color
{
    Red,
    Green,
    Blue
}

produces a combo box with the list populated with Red Green and Blue, and makes it required.

Ideally, the generated code includes a method that accepts an instance of my class and prepopulates the controls in the winform with the values in the properties of my instance. Correspondingly, another method saves the existing values in the controls to an instance of my class.

Is there something like that available?


Please note: I am not looking for:

  1. An ORM or DAL
  2. A generalized tool like CodeSmith, unless it’s free and open-source
  3. WPF or ASP.NET code, it needs to be Winforms
  4. NetTiers or any similar type of complete application framework, unless I can parse out the small part of it that applies specifically to this scenario.
  • 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-26T20:38:04+00:00Added an answer on May 26, 2026 at 8:38 pm

    It is ‘quite easy’ to extract the functionality of the PropertyGrid into your own hosted controls, but that would only cover half your requirement. At a minimum, read up on TypeConverter, TypeDescriptor and PropertyDescriptor.

    Also have a look at: codeproject.com/KB/custom-controls/xacc_propertygrid.aspx, this basically exposes the PropertyGrid‘s functionality to a web page, but it will give you some ideas.

    I know this is not a complete answer, but should point one in the right direction to write/author such a tool.

    It would be nice if such a scaffolding tool existed for WinForms 🙂

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

Sidebar

Related Questions

I'm porting some open source code so that it can build on another c++
We have some open source libraries that are distributed via code into other projects
I'm looking at some open source code and trying to understand why the author
the window.open() object has some funky parameter list... is there a way to do
I have used an open source code from CodeProject to read email from incoming
I'm thinking if there already is some sort of online live python console (web-based)
I am working on a lib that I want to release in open source.
I am working on an application that involves some gis stuff. There would be
Does anyone know of any open source code for doing a preview of an
I'm not looking for a library or even open source code. I want to

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.