c#, resize dialog while maintaining aspect ratio by intercepting the WM_SIZING method in WndProc


/ Published in: C#
Save to your folder(s)

This resizes the whole form.
In the case of PictureBoxes, consider resizing the picture box by subclassing PictureBox.


Copy this code and paste it in your HTML
  1. // http://www.vcskicks.com/maintain-aspect-ratio.php

URL: http://www.vcskicks.com/maintain-aspect-ratio.php

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.