Home > Net >  Help, how the winform form of content change and change?
Help, how the winform form of content change and change?

Time:11-28

How the winform forms of content change and change?

Similar to the DIV, increased the contents of the DIV, DIV will get bigger

I put a lable on forms, lable set autosize to true, the form is set autosize to true

According to Microsoft's explanation, autosize means: specify whether controls automatically adjust itself to adapt to the size of its content, the size of the

So why is the form not increased with the increase of the lable text greatens?





CodePudding user response:

On the label should add autosize can
True not line code level, get width and synchronization

CodePudding user response:

Controls a property, just shows that there exists an attribute, with the actual mechanism should read a book to the actual source code, test,

CodePudding user response:

"The larger with the increase of the text of lable" this can you write the test code? How do you know the form of the width of the increase of the "text"? Writing your own program descriptions, can,
  •  Tags:  
  • C#