Ok I've been playing around with this a little and here is what i just found out
Code:
Public ReadOnly Property GetCombo() As String
Get
If lbWordlist.InvokeRequired Then
Return GetTheCombo()
ElseIf tbWordlist.InvokeRequired Then
Return GetTheCombo()
Else
Return GetTheCombo()
End If
End Get
End Property
Public Function GetTheCombo() As String
Dim tmp As String
tmp = lbWordlist.Items.Item(tbWordlist.Value - 1)
If tbWordlist.Value = tbWordlist.Maximum Then
StopBots = True
Else
tbWordlist.Value += 1
End If
Return tmp
End Function
Both of the controls.invokerequired are false but my problem still exists... im getting an outofrange error when i access lbWordlist.items.item(...
and my tbWordlist.Maximum is back at 1 when i load my txt into lbWordlist i stop and check the values and they are correct. It's like im working with a different control. Does anyone know why it would be doing this?