Author Topic: Move and Resize Controls at Runtime  (Read 2819 times)

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Move and Resize Controls at Runtime
« 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.
« Last Edit: February 24, 2015, 09:25:31 PM by Godra »

maxketcham

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Move and Resize Controls at Runtime
« Reply #1 on: February 03, 2016, 09:11:38 AM »
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.