Defines a binding between the volume control in the line and a control

Namespace: NDXVUMeterNET
Assembly: DXVUMeterNETGDI (in DXVUMeterNETGDI.dll) Version: 3.0.4021.33606 (3.1.0.0)

Syntax

C#
public void SetVolumeBinding(
	Control Control,
	string PropertyName,
	string EventName
)
Visual Basic
Public Sub SetVolumeBinding ( _
	Control As Control, _
	PropertyName As String, _
	EventName As String _
)
Visual C++
public:
void SetVolumeBinding(
	Control^ Control, 
	String^ PropertyName, 
	String^ EventName
)

Parameters

Control
Type: System.Windows.Forms..::..Control
The control to be used to represent and/or change the volume. This is usually a TrackBar
PropertyName
Type: System..::..String
The name of the property that will be used to set and display the volume. When using a TrackBar this should be set to Value
EventName
Type: System..::..String
The name of the event that the line will listent for to detect changes in the control. When using a TrackBar this should be set to ValueChanged

Remarks

It is very important to call RemoveBindings when the binding are not going to be used or the control is going to be disposed.

See Also