How Forms are opened - Visual Studio

Asked

Viewed 161 times

0

Good morning,

My problem is that when I start the program it gets like this:

That is, the form child nor scroll bar has there cut the other options inserir a descrição da imagem aqui

To solve, I maximize the parent form, but it looks visually strange, see:

inserir a descrição da imagem aqui

How could I make the child form "layout" fit the parent form? (if I was clear in what I wanted to talk about)

I already asked two other questions that I left the codes, if it helps.

How to call the form inside another - Visual Studio

Conflict when opening multiple screens in the menuStrip - Visual Studio

  • 2

    You have enabled AUTOSCROLL?

  • now for when max Voce can try Anchor, now don’t show it to me, sorry later I put

2 answers

1

Try to set the AutoScroll as true in your form. Maybe this will solve.

inserir a descrição da imagem aqui

  • It worked, for when the parent form is on the default screen, but when I maximize, see in the second image gets those corners cinzar "vacant".. How could I adjust it? Or I don’t know

  • By maximizing the form, it will look that way. I don’t know any way to adjust the form automatically. The correct thing would be to block the maximization of this form. Just set the MaximizeBox false.

  • I got Samuel, I did it the way Vitor up there said, "Anchor". Thank you!!

  • 1

    Glad you made it. Flww

1


Good morning!

In the properties of components like Textbox etc. you have the ANCHOR option that resizes the fields according to the form!

Conforme mostrado na imagem

  • Need to adjust this for all components? Label, button, textbox etc?

  • Thanks buddy, that’s just what I needed!!!

  • 1

    Yes, in all of them. That’s what we’re there for!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.