Windows forms control type property window?

2

Does anyone know if there is a control similar to the properties window of visual studio? I'm trying to replicate the control of the next image but I do not find a control like this, I hope you can help me:

    
asked by AaronDev 10.08.2017 в 06:29
source

1 answer

2

If there is one, it is called PropertyGrid and it works very well, here is an example code from the Microsoft page:

using System;
using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;
using System.Globalization;

public class OptionsDialog : System.Windows.Forms.Form
{
    private System.Windows.Forms.PropertyGrid OptionsPropertyGrid;
    public OptionsDialog()
    {
        OptionsPropertyGrid = new PropertyGrid();
        OptionsPropertyGrid.Size = new Size(300, 250);

        this.Controls.Add(OptionsPropertyGrid);
        this.Text = "Options Dialog";
    }

    [STAThread]
    static void Main() 
    {
        Application.Run(new OptionsDialog());
    }
}

I hope it serves as your starting point.

    
answered by 10.08.2017 / 19:48
source