Skip to content

BuddyControl Property

Description

Sets or returns the control used as the buddy control.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property BuddyControl() As String

Remarks

The BuddyControl property can be set at design time or at run time. At run time, you can use the BuddyControl property in the Properties window. To set the BuddyControl property at run time, use the following code:

UpDownControl.BuddyControl = FlatEdit1

You can also implicitly set the BuddyControl property by setting the AutoBuddy to True. In this case, the BuddyControl is automatically set to the previous control in the tab order.

Setting the BuddyControl property to Nothing automatically sets the AutoBuddy setting to False.

Setting the BuddyControl property to a control that cannot be a buddy, such as the tree control, will cause an error.

See Also


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