Visual Basic: Windows Controls

Visual Studio 6.0

AutoBuddy Property

See Also   Example   Applies To

Sets or returns a value that determines whether the UpDown control automatically uses a control as its buddy control, based on its tab order.


object.AutoBuddy [= value]

The AutoBuddy property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A boolean expression that determines the buddy control, as described in Settings.


The settings for value are:

Setting Description
True The UpDown control uses the previous control in the tab order as its buddy control. If no controls with a previous tab index can be used as a buddy control, the UpDown control uses the first available control with a higher tab index as its buddy control.
False (Default) The UpDown control uses the setting in the BuddyControl property as its buddy control.


Setting the AutoBuddy property to True also sets the BuddyControl property. Setting AutoBuddy to False clears the BuddyControl property.