hi all

I,am new in visual basic programming and using VB6

I have one treeview and (2) textboxes in the same form

what i wanna do is that

whien the user to click the node some information (data) will be shown automatically in list boxes

Assuming that data to be shown in both list boxes is an array
i.e for example, my data is stored in the below array example

VB code

' Data array to be shown in list boxes No. 1 when user clik the node

Dim IPN_sch40(10) As String

IPN_sch40(1) = "School 1"
IPN_sch40(2) = "School 2"
IPN_sch40(3) = "School 3"


' Data array to be shown in list boxes No. 2 when user clik the same node

Dim IPE_sch40(3) As String

IPN_sch40(1) = "Area 1"
IPN_sch40(2) = "Area 2"
IPN_sch40(3) = "Area 3"


please help