Click here to Skip to main content
15,903,388 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: Searchprogram for text in multi excel sheets Pin
Richard MacCutchan16-Jul-12 7:45
mveRichard MacCutchan16-Jul-12 7:45 
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@16-Jul-12 10:30
abjac@16-Jul-12 10:30 
GeneralRe: Searchprogram for text in multi excel sheets Pin
JR21216-Jul-12 19:01
JR21216-Jul-12 19:01 
GeneralRe: Searchprogram for text in multi excel sheets Pin
Richard MacCutchan16-Jul-12 21:16
mveRichard MacCutchan16-Jul-12 21:16 
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@16-Jul-12 22:35
abjac@16-Jul-12 22:35 
GeneralRe: Searchprogram for text in multi excel sheets Pin
Richard MacCutchan16-Jul-12 22:50
mveRichard MacCutchan16-Jul-12 22:50 
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@16-Jul-12 23:23
abjac@16-Jul-12 23:23 
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@17-Jul-12 5:44
abjac@17-Jul-12 5:44 
HI I tried this code but its not working, i have tried different ways to avoid the error but wit no luck
The error is in this line "Dim Item As ListBoxItem"
Error 1 Type 'ListBoxItem' is not defined.

Try also to have a look to below code where i want to see the the result in Listbox2. Is this one ok you think?

Please have a look thanks

abjac



Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Item As ListBoxItem
Dim dir As String

Item = ListBox1.SelectedItem
dir = Item.Content.ToString

Dim filenames = My.Computer.FileSystem.FindInFiles(dir, TextBox1.Text, True, FileIO.SearchOption.SearchAllSubDirectories)

For Each filename As String In filenames
ListBox2.Show()
Next


End Sub
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@18-Jul-12 10:48
abjac@18-Jul-12 10:48 
GeneralRe: Searchprogram for text in multi excel sheets Pin
Richard MacCutchan18-Jul-12 21:43
mveRichard MacCutchan18-Jul-12 21:43 
GeneralRe: Searchprogram for text in multi excel sheets Pin
abjac@19-Jul-12 0:40
abjac@19-Jul-12 0:40 
GeneralRe: Searchprogram for text in multi excel sheets Pin
Richard MacCutchan19-Jul-12 2:05
mveRichard MacCutchan19-Jul-12 2:05 
QuestionVB and API Pin
Darryl Gschwind14-Jul-12 10:41
Darryl Gschwind14-Jul-12 10:41 
AnswerRe: VB and API Pin
Wes Aday14-Jul-12 12:11
professionalWes Aday14-Jul-12 12:11 
GeneralRe: VB and API Pin
Darryl Gschwind14-Jul-12 14:13
Darryl Gschwind14-Jul-12 14:13 
QuestionEnable usb ports Pin
aliali7414-Jul-12 3:48
aliali7414-Jul-12 3:48 
AnswerRe: Enable usb ports Pin
Wes Aday14-Jul-12 3:57
professionalWes Aday14-Jul-12 3:57 
AnswerRe: Enable usb ports Pin
ZappaDog30-Jul-12 8:28
ZappaDog30-Jul-12 8:28 
Questiondata connectivity Pin
shubham salwan12-Jul-12 18:16
shubham salwan12-Jul-12 18:16 
AnswerRe: data connectivity Pin
Nick Otten12-Jul-12 20:20
Nick Otten12-Jul-12 20:20 
QuestionDocument Searching Pin
MacOwl11-Jul-12 16:41
MacOwl11-Jul-12 16:41 
AnswerRe: Document Searching Pin
Nick Otten11-Jul-12 21:40
Nick Otten11-Jul-12 21:40 
GeneralRe: Document Searching Pin
MacOwl11-Jul-12 21:47
MacOwl11-Jul-12 21:47 
GeneralRe: Document Searching Pin
Nick Otten11-Jul-12 22:09
Nick Otten11-Jul-12 22:09 
GeneralRe: Document Searching Pin
MacOwl11-Jul-12 23:04
MacOwl11-Jul-12 23:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.