Version

ResetDropDownPositionAndSize(Control,Rectangle,Rectangle) Method

Static method that resizes and repositions the dropdown based on the supplied screen rect.
Syntax
'Declaration
 
Public Overloads Shared Function ResetDropDownPositionAndSize( _
   ByVal owner As Control, _
   ByVal newDropDownRect As Rectangle, _
   ByVal newExclusionRect As Rectangle _
) As Rectangle
public static Rectangle ResetDropDownPositionAndSize( 
   Control owner,
   Rectangle newDropDownRect,
   Rectangle newExclusionRect
)

Parameters

owner
Used to compare to the owner that was passed into the DropDown method. If it is the same or null it will the dropdown state,. Otherwise it will return false.
newDropDownRect
The new rect of the dropdown in screen coordinates. Pass Rectangle.Empty to keep the current dropdown rect.
newExclusionRect
The new exclusion rect of the dropdown in screen coordinates. Pass Rectangle.Empty to keep the current exclusion rect.

Return Value

The actual new rect of the dropdown in screen coordinates, or null if a dropdown with the specified owner was not found.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also