Click here to Skip to main content
15,887,923 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Bound datagridview with unbound combobox Column - Problems Pin
Sasha Laurel18-Jul-12 13:23
Sasha Laurel18-Jul-12 13:23 
GeneralSearchprogram for text in multi excel sheets Pin
abjac@16-Jul-12 6:23
abjac@16-Jul-12 6:23 
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 
You just need to replace the strings in your method call with proper parameters which you initialise from the listbox[^] and the textbox[^]. Something like:
VB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim litem As ListBoxItem
    Dim dir As String

    litem = listbox1.SelectedItem
    dir = litem.Content.ToString

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


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 
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 

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.