Many properties in VBVoice controls can be used as arrays, based on the channel number. These allow VBVoice to support multi-channel systems.
The channel is provided as a parameter to the event procedures and should be used to index the property when accessing array properties.
The syntax required to index arrays in Visual Basic is variable_name(index). In C#, it is variable_name[index]
EXAMPLE
To set the GotoNode property in the Enter event for control User1, employ this code:
VB
Sub User1_Enter(channel as Integer)
User1.GotoNode(channel)=
0
End Sub
VB.NET
Private Sub User1_EnterEvent(ByVal sender As System.Object, ByVal e As
AxVBVoiceLib._DUserEvents_EnterEvent) Handles User1.EnterEvent
User1.GotoNode(e.channel) = 0
End Sub
C#
private void user1_EnterEvent(object sender, _DUserEvents_EnterEvent e)
{
user1.GotoNode[e.channel] = 0;
}