Posted By

jimfred on 10/06/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

danfinrud55


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


 / Published in: C#
 

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

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

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

Report this snippet  

You need to login to post a comment.