Resize an MDI Form without borders

Asked

Viewed 197 times

0

I’ve found many tips on how to resize a form without borders, all functional and good, but they don’t work when it comes to an MDI Form.

Someone has a functional tip on how to resize an MDI Form?

From now on my thanks.

  • What do you mean MDI Form sem bordas?

  • the no-borders is for the user not resize... If Voce is talking to resize via code ai is already something else.

  • Come on, buddy, let me explain! As I put it "I’ve found many tips on how to resize a form without borders, all functional and good", yes, without borders, but as for what the user does, that’s what I allow, so he can resize the form. Everything works fine, but to work with open form in a Tabcontrol, necessarily the main form needs to be MDI, and that’s the problem, all the ~resize controls I implemented are disabled. What I need to know is how to redeem an MDI Form, without edges, by the four sides and by the 4 corners!

1 answer

0

I don’t know if I solved your problem because this very confusing your question...

In the Child form builder, add these lines of code:

this.Dock = DockStyle.Fill;

In the Form_load event, you must add this line of code:

this.WindowState = FormWindowState.Maximized;
  • Thanks for the return Daniloloko! Good let’s see if I explain better! I have a Mainform without borders that I assembled according to my needs.Finally, I remodeled according to the interface I needed, including being able to redeem it. But when I open a registration form, for example, I open it in a Tabpagecontrol, for this the Mainform has to be an MDI form and passing to MDI form, loses the possibility of redeeming the Mainform. And I want to implement this and I need help!

Browser other questions tagged

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