MS Visual Studio Forms: cannot get a shape that is shorter than 100 pixels wide

The first question, therefore, if I can improve something, please let me know!

I am currently creating an application with several forms. Currently, it consists of a launcher with various buttons, and the launcher has a width of 150 pixels (that's good). When the user clicks the button, another panel will open 10 pixels next to the first panel with a width of 75. (I would like to add the current “subcategory” buttons here)

But when calling the second form, it saves the setting to 100 pixels (well, I think it is 100 pixels, since it seems about 2/3 of the first panel)

    private void button_click(object sender, EventArgs e) 
    {
        if (activated == 0)
        {
            var new_y = new form2();
            new_y.AutoSize = false;
            new_y.Width = 75;
            new_y.Height = this.Height;
            new_y.Show();
            activated = 1;
        }
    }   

(), , - , .

: 100 75 , ?

!

Ps. FormBorderStyle none

+4
1

MinimumSize:

new_y.Width = 75;
new_y.Height = this.Height;
new_y.MinimumSize = new Size(75, this.Height);
+2

All Articles