AdvancedHMI Software
General Category => Tips & Tricks => Topic started by: Godra on February 24, 2015, 09:21:40 PM
-
It is quite an interesting feature that might be useful to someone (definitely good for presentation purposes).
The code can be found here and used exactly as it is:
http://www.codeproject.com/Articles/20716/Allow-the-User-to-Resize-Controls-at-Runtime
I did test it with 3 different controls on the same form and it worked fine. Placing a mouse in the top left corner of the control will allow you to move the control and either of 4 edges of the control will resize it.
-
I've used that code before in other projects, it really is useful if you have a form you want to print, say a barcode and product label, and you want the user to both be able to move the items around to suit them and get it to print in a certain location of the label.