[RESOLVED] (open) ListView To TextBox
Hi ! I have a little scanner that scans for certain keywords on my pc when it finds these keywords it adds them to my listbox! So what im wondering is, is it possible to take these keywords that are found and extract them to a textbox?
Keep in mind i am new at vb6 so this may be stupid question!
:thumb:
Re: (Resolved) ListView To TextBox
well, can you then please mark this thread as resolved. look at my signature below this message for instructions ok
Re: (Resolved) ListView To TextBox
Thanks for letting us know that you have your answer but the easy way to do that is by pulling down the Thread Tools menu and clicking the Mark Thread Resolved button. Also if someone has been particularly helpful, or even particularly unhelpful, you have the ability to affect a their forum "reputation" by rating their post.
Re: (open) ListView To TextBox
Sorry to bug you again the last code works fine besides it double post objects into the textbox. lets say i am scanning emails! it will look like this in the textbox
name@whatever.comname@whatever.com
Re: (open) ListView To TextBox
Re: [RESOLVED] (open) ListView To TextBox
do this
VB Code:
Private Sub Command1_Click()
If ListView1.SelectedItem.Index < ListView1.ListItems.Count Then
ListView1.SelectedItem = ListView1.ListItems(ListView1.SelectedItem.Index + 1)
Else
ListView1.SelectedItem = ListView1.ListItems(1)
End If
'ok if you want to replace the value displayed in the textbox
Text1.Text = ListView1.SelectedItem.Text
End Sub