Search Results for

    Show / Hide Table of Contents

    Class FormUtils

    Static helpers for Windows Forms layout and focus, including locating the active form and focused control, testing parent/child relationships, and DPI-scaling padding and image lists.

    Inheritance
    object
    FormUtils
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing.Forms
    Assembly: Reportman.Drawing.Forms.dll
    Syntax
    public class FormUtils

    Constructors

    View Source

    FormUtils()

    Declaration
    public FormUtils()

    Methods

    View Source

    FocusedControl()

    Declaration
    public static Control FocusedControl()
    Returns
    Type Description
    Control
    View Source

    FocusedControl(Control)

    Declaration
    public static Control FocusedControl(Control parent)
    Parameters
    Type Name Description
    Control parent
    Returns
    Type Description
    Control
    View Source

    GetActiveForm()

    Declaration
    public static Form GetActiveForm()
    Returns
    Type Description
    Form
    View Source

    IsChildFocused(Control)

    Declaration
    public static bool IsChildFocused(Control parentcontrol)
    Parameters
    Type Name Description
    Control parentcontrol
    Returns
    Type Description
    bool
    View Source

    IsParent(Control, Control)

    Declaration
    public static bool IsParent(Control parent, Control child)
    Parameters
    Type Name Description
    Control parent
    Control child
    Returns
    Type Description
    bool
    View Source

    PaddingDPI(Padding)

    Declaration
    public static Padding PaddingDPI(Padding source)
    Parameters
    Type Name Description
    Padding source
    Returns
    Type Description
    Padding
    View Source

    ScaleImageList(ImageList)

    Declaration
    public static void ScaleImageList(ImageList imlist)
    Parameters
    Type Name Description
    ImageList imlist
    • View Source
    In this article
    Back to top Generated by DocFX