GoDigram for .NET Framework and .NET Core
Northwoods.Go.Draw Namespace / GoPropertyUserControl Class / GetDropdownLocation Method
the Form to be shown
the Control, normally a Button, that causes the drop down form to be shown
In This Topic
    GetDropdownLocation Method
    In This Topic
    Gets a location for a Form brought up by a drop down button
    Syntax
    protected virtual Point GetDropdownLocation( 
       Form f,
       Control relativeTo
    )

    Parameters

    f
    the Form to be shown
    relativeTo
    the Control, normally a Button, that causes the drop down form to be shown

    Return Value

    a Point in screen coordinates
    Remarks
    Used by color preview buttons and gradient/hatch dropdowns. The X and/or Y value may be negative.
    See Also