> Visual Studio question.?

Visual Studio question.?

Posted at: 2014-12-18 
How do I make it so that forms move with the window when I make it bigger and smaller?

You can anchor them during the design phase with the "Designer" to different sides, top and bottom. Look at the properties, find the subsection called "Layout" and then find the "Anchor" property -- change it to suit. This doesn't require any specific code, but it is limited. Also look at the "Dock" property there, too.

If you want, you can write code that responds to various "events." Look for anything ending in ..."Changed" as a name. For example, SizeChanged. But there are also other names, like Layout, Resize, and Load, which may also be useful. Perhaps you should consider the Resize event, first?

How do I make it so that forms move with the window when I make it bigger and smaller?