Click here to Skip to main content
15,886,518 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioncaret line number (not the "just" line number ) Pin
NANCO18-May-07 5:48
NANCO18-May-07 5:48 
AnswerRe: caret line number (not the "just" line number ) Pin
Dave Kreskowiak18-May-07 6:36
mveDave Kreskowiak18-May-07 6:36 
GeneralRe: caret line number (not the "just" line number ) Pin
NANCO19-May-07 1:08
NANCO19-May-07 1:08 
GeneralRe: caret line number (not the "just" line number ) Pin
Dave Kreskowiak19-May-07 4:06
mveDave Kreskowiak19-May-07 4:06 
QuestionConvert image from 24bpp to 1bppindexed Pin
stuinstra35118-May-07 5:42
stuinstra35118-May-07 5:42 
AnswerRe: Convert image from 24bpp to 1bppindexed Pin
Dave Kreskowiak18-May-07 6:25
mveDave Kreskowiak18-May-07 6:25 
AnswerRe: Problem Fixed Pin
stuinstra35118-May-07 7:44
stuinstra35118-May-07 7:44 
Questioncheck database for fields Pin
jds120718-May-07 4:40
jds120718-May-07 4:40 
I am working on a program that will search for files and add the files to a listbox(listbox1). Here is the code:

Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click

GetDirectoryContents(TextBox1.Text.Split(New String() {";"}, StringSplitOptions.RemoveEmptyEntries), TextBox2.Text.Split(New String() {";"}, StringSplitOptions.RemoveEmptyEntries))
End Sub

Private Sub GetDirectoryContents(ByVal dirs() As String, ByVal patterns() As String)
'Declare variable.
Dim dDir As DirectoryInfo

For Each sDir As String In dirs
If Not Directory.Exists(sDir) Then Continue For
dDir = New DirectoryInfo(sDir)
For Each ext As String In patterns
For Each fi As FileInfo In dDir.GetFileSystemInfos("*." & ext)
ListBox1.Items.Add(fi.Name)
Next
Next
Next
End Sub

I have created a table in access named tblExcluded which includes excluded files. I want to be able to check that table to see if specific files are in the table. If those files are in the table then add them to listbox2 and all other files that don't exist in the table store then in listbox1. The table contains a ID field and a the file path field. Does any one have any sample code that will perform this? Any suggestions would help.
QuestionDataGridView databound to textboxes and CellValidating Pin
Marcus J. Smith18-May-07 4:00
professionalMarcus J. Smith18-May-07 4:00 
AnswerRe: DataGridView databound to textboxes and CellValidating Pin
kubben18-May-07 5:52
kubben18-May-07 5:52 
GeneralRe: DataGridView databound to textboxes and CellValidating Pin
Marcus J. Smith18-May-07 7:24
professionalMarcus J. Smith18-May-07 7:24 
GeneralRe: DataGridView databound to textboxes and CellValidating Pin
kubben18-May-07 7:30
kubben18-May-07 7:30 
GeneralRe: DataGridView databound to textboxes and CellValidating Pin
Marcus J. Smith18-May-07 7:46
professionalMarcus J. Smith18-May-07 7:46 
GeneralRe: DataGridView databound to textboxes and CellValidating Pin
kubben18-May-07 7:48
kubben18-May-07 7:48 
GeneralRe: DataGridView databound to textboxes and CellValidating Pin
Marcus J. Smith18-May-07 8:20
professionalMarcus J. Smith18-May-07 8:20 
GeneralRe: DataGridView databound to textboxes and CellValidating Pin
kubben18-May-07 8:24
kubben18-May-07 8:24 
GeneralRe: DataGridView databound to textboxes and CellValidating Pin
Marcus J. Smith18-May-07 8:43
professionalMarcus J. Smith18-May-07 8:43 
QuestionChat Application Pin
kantipudi18-May-07 3:45
kantipudi18-May-07 3:45 
AnswerRe: Chat Application Pin
Dave Kreskowiak18-May-07 4:24
mveDave Kreskowiak18-May-07 4:24 
GeneralRe: Chat Application Pin
Paul Conrad18-May-07 6:16
professionalPaul Conrad18-May-07 6:16 
GeneralRe: Chat Application Pin
leckey18-May-07 8:01
leckey18-May-07 8:01 
GeneralRe: Chat Application Pin
Paul Conrad18-May-07 10:18
professionalPaul Conrad18-May-07 10:18 
GeneralRe: Chat Application Pin
The ANZAC18-May-07 12:10
The ANZAC18-May-07 12:10 
GeneralRe: Chat Application Pin
Paul Conrad18-May-07 14:42
professionalPaul Conrad18-May-07 14:42 
GeneralRe: Read what i asked? Pin
kantipudi21-May-07 19:48
kantipudi21-May-07 19:48 

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.