Skip to content

AutoBuddy Property

Description

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

Property Type

Read-write property

Syntax (Visual Basic)

Public Property AutoBuddy() As Boolean

Remarks

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

This should be set at design time.

By setting the AutoBuddy property, the UpDown control automatically uses the previous control in the tab order as its buddy control. If there is no previous control in the tab order, the UpDown control will use the next control in the tab order as its buddy control. Another way to set the buddy control is with the BuddyControl property. At design time, when either the AutoBuddy property or the BuddyControl property is set, the buddy control will automatically pair up with the UpDown control by sizing and positioning next to it.

Note: If you change the TabIndex property of a control so that it can be used with AutoBuddy, you will need to set AutoBuddy to False and then to True again to get the UpDown control to update itself.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.