Hello, I have this..
What im trying to do here is it Selects the first item in listbox4 (did the in previous code), And then if the item is like 'Sonic The Hedgehog 1 (USA)' and in listbox5 there is an item 'Sonic The Hedgehog (UK)' then it will select that listbox5 item (also known as finding a string almost exact)..
But there is an error saying..
any help?
Thanks!
VB.NET:
Dim mrctStr As String = ListBox5.FindString(ListBox4.SelectedItem)
Dim mrcStr As Integer = ListBox5.Items.IndexOf(mrctStr)
ListBox5.SelectedIndex = mrcStr
TreeView1.Nodes(lb4).Nodes.Add(ListBox5.SelectedItem.ToString)
What im trying to do here is it Selects the first item in listbox4 (did the in previous code), And then if the item is like 'Sonic The Hedgehog 1 (USA)' and in listbox5 there is an item 'Sonic The Hedgehog (UK)' then it will select that listbox5 item (also known as finding a string almost exact)..
But there is an error saying..
VB.NET:
Object reference not set to an instance of an object.
any help?
Thanks!