/// <summary> /// Supports multi-line text on the Button control (to match default behaviour on the desktop). /// </summary> /// <param name="button">The button to update.</param> public static void SetMultiline(this ButtonBase button) { ControlInTheHand.ModifyStyles(button.Handle, BS_MULTILINE, 0); }
/// <summary> /// /// </summary> /// <param name="progressBar"></param> /// <param name="value"></param> /// <remarks> /// <list type="table"><listheader><term>Platforms Supported</term><description></description></listheader> /// <item><term>Windows Embedded Compact</term><description>Windows CE 6.0 and later</description></item> /// </list> /// </remarks> public static void SetMarqueeStyle(this ProgressBar progressBar, bool value) { ControlInTheHand.ModifyStyles(progressBar.Handle, value ? PBS_MARQUEE : ~PBS_MARQUEE, value ? ~PBS_MARQUEE : PBS_MARQUEE); NativeMethods.SendMessage(progressBar.Handle, PBM_SETMARQUEE, value ? 1 : 0, 100); }