I have a question about my c# winform. When I enlarge my flow layout panel, I want my controls in it enlarge depends on my size of the flow layout panel. How can I do that?
For DataGridView changes with the size of the form,you could use control Control.Anchor Property .
Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent.
Set the property Anchor of the DataGridView to Top, Left, Right, and it will resize with the container. If your DataGridView is placed in a container (panel), then the panel should also be anchored.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.