示例#1
0
 /// <summary>
 /// Sets the minimum size of the automatic scroll.
 /// </summary>
 /// <param name="control">The control.</param>
 /// <param name="value">The value.</param>
 public static void SetAutoScrollMinSize(this ScrollableControl control, Size value)
 {
     if (control.InvokeRequired)
     {
         control.BeginInvoke(new MethodInvoker(() => control.SetAutoScrollMinSize(value)));
     }
     else
     {
         control.AutoScrollMinSize = value;
         control.Refresh();
     }
 }