SyncBuddy Property

       

Sets or returns a value that determines whether the UpDown control synchronizes the Value property with a property in the buddy control.

Syntax

object.SyncBuddy [= value]

The SyncBuddy 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 whether the buddy control synchronizes with the UpDown control, as described in Settings.

Settings

The settings for value are:

Setting Description
True The UpDown control synchronizes the Value property with a property of the buddy control, specified by the BuddyProperty property. If no property is specified in the BuddyProperty property, then the default property for the buddy control is used.
False (Default) The UpDown control doesn't synchronize the Value property with a property in the buddy control.

Remarks

Use the SyncBuddy property to automatically synchronize a property of the buddy control with the Value property of the UpDown control. For example, you can synchronize the Value property of the UpDown control with the Text property of a TextBox control. Whenever the Value property changes, it would update the Text property in the TextBox control and vice versa. You can also synchronize the Value property of the UpDown control with other properties of a control such as the Top, Left, BackColor, ForeColor, and others.

To see a list of the available properties you can synchronize the Value property with (after setting the BuddyControl property), select the BuddyProperty property in the properties window or from the Properties Page.