Example #1
0
 private void SetItemLocation(System.Windows.Forms.Control control, ItemLocation thisItem)
 {
     control.Top = thisItem.Top;
     control.Left = thisItem.Left;
     control.Width = thisItem.Width;
     control.Height = thisItem.Height;
 }
Example #2
0
 private ItemLocation GetLocationParms(System.Windows.Forms.Control control)
 {
     ItemLocation thisItem = new ItemLocation();
     thisItem.Top = control.Top;
     thisItem.Left = control.Left;
     thisItem.Width = control.Width;
     thisItem.Height = control.Height;
     return thisItem;
 }