Foldable side control panel

I am looking for a way to create or implement a collapsible sidebar inside a form. Just like the ToolStripContainer works, I need a general concept, except for using panels that I can fill with controls. Does anyone know an easy way to do this using the provided .Net controls or is this a common user work. In any case, I would appreciate some suggestions.

+3
source share
2 answers

Try this in C #, but I'm sure it can be easily translated

. . , "<" 20. button1_Click

    private void button1_Click(object sender, EventArgs e)
    {
        if (button1.Text == ">")
        {
            panel1.Width = 200;
            button1.Text = "<";
        }
        else
        {
            panel1.Width = button1.Width;
            button1.Text = ">";
        }
    }

, , , . , .

+1

Source: https://habr.com/ru/post/1698299/


All Articles