Click here to Skip to main content
15,913,773 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: SQL and VB, Some tips/direction please. Pin
Henry Minute4-Jan-09 6:09
Henry Minute4-Jan-09 6:09 
GeneralRe: SQL and VB, Some tips/direction please. Pin
Colin Angus Mackay4-Jan-09 6:15
Colin Angus Mackay4-Jan-09 6:15 
AnswerThanks to all above Pin
Dalek Dave4-Jan-09 7:49
professionalDalek Dave4-Jan-09 7:49 
Questionitunes , get cover art , visual basic 2008 Pin
ls780h3-Jan-09 2:57
ls780h3-Jan-09 2:57 
QuestionRe: itunes , get cover art , visual basic 2008 Pin
ekuhner15-Jan-09 6:32
ekuhner15-Jan-09 6:32 
Questionhow can I make code for barcode Pin
semo12-Jan-09 21:41
semo12-Jan-09 21:41 
AnswerRe: how can I make code for barcode [modified] Pin
Wendelius3-Jan-09 0:24
mentorWendelius3-Jan-09 0:24 
Questionhow to display files that are not in directory? Pin
zaimah2-Jan-09 17:10
zaimah2-Jan-09 17:10 
Im suppose to have an app where it will compare two folders, Folder A and Folder B. It will check whether files in folder A are in folder B. If the file in folder A are not in folder B, it will display the name of the files that are not in folder B. This is the coding that i manage to do.. But nothing happen when i click the button check.. PLsss sumbody help me..
Private Sub btncheck_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btncheck.Click
        Dim di1 As DirectoryInfo = New DirectoryInfo(txtdir1.Text) ' Folder A
        Dim di2 As DirectoryInfo = New DirectoryInfo(txtdir2.Text) ' Folder B
                
        Try
            Dim dirs1 As FileSystemInfo() = di1.GetDirectories
            Dim dirs2 As FileSystemInfo() = di2.GetDirectories
            Dim d1, d2 As DirectoryInfo
            Dim i As Integer
          
            For i = 0 To dirs1.Length - 1
                For Each d1 In dirs1
                    Dim f1 As FileInfo() = d1.GetFiles()

                    For Each d2 In dirs2
                        Dim f2 As FileInfo() = d2.GetFiles()

                        If d1.Name = d2.Name Then
                        Else

                            Console.WriteLine(d1.Name)
                        End If
                    Next
                Next
            Next



        Catch ex As Exception

        End Try

    End Sub


    Private Sub btndirectory_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btndirectory.Click
        Dim folderopen As New FolderBrowserDialog
        With folderopen
            .RootFolder = Environment.SpecialFolder.Desktop
            .SelectedPath = "C:\DOCUMENT"
            .Description = "Select the source directory"
            If .ShowDialog = Windows.Forms.DialogResult.OK Then
                ' Display the selected folder if the user clicked on the OK button.
                MessageBox.Show(.SelectedPath)
                txtdir1.Text = .SelectedPath
            End If

        End With
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        lbldate.Text = Now.ToLongDateString
    End Sub

  
    Private Sub btndirectory2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim folderopen As New FolderBrowserDialog
        With folderopen
            .RootFolder = Environment.SpecialFolder.Desktop
            .SelectedPath = "C:\DOCUMENT"
            .Description = "Select the source directory"
            If .ShowDialog = Windows.Forms.DialogResult.OK Then
                ' Display the selected folder if the user clicked on the OK button.
                MessageBox.Show(.SelectedPath)
                txtdir2.Text = .SelectedPath
            End If

        End With
    End Sub

GeneralRe: how to display files that are not in directory? Pin
Luc Pattyn2-Jan-09 17:30
sitebuilderLuc Pattyn2-Jan-09 17:30 
GeneralRe: how to display files that are not in directory? Pin
zaimah2-Jan-09 19:23
zaimah2-Jan-09 19:23 
GeneralRe: how to display files that are not in directory? Pin
Luc Pattyn3-Jan-09 1:40
sitebuilderLuc Pattyn3-Jan-09 1:40 
GeneralRe: how to display files that are not in directory? Pin
zaimah3-Jan-09 20:43
zaimah3-Jan-09 20:43 
GeneralRe: how to display files that are not in directory? Pin
Luc Pattyn4-Jan-09 0:39
sitebuilderLuc Pattyn4-Jan-09 0:39 
GeneralRe: how to display files that are not in directory? Pin
zaimah4-Jan-09 2:39
zaimah4-Jan-09 2:39 
GeneralRe: how to display files that are not in directory? Pin
Luc Pattyn4-Jan-09 6:03
sitebuilderLuc Pattyn4-Jan-09 6:03 
QuestionRe: how to display files that are not in directory? Pin
zaimah8-Jan-09 20:31
zaimah8-Jan-09 20:31 
AnswerRe: how to display files that are not in directory? Pin
Luc Pattyn9-Jan-09 1:21
sitebuilderLuc Pattyn9-Jan-09 1:21 
GeneralRe: how to display files that are not in directory? Pin
zaimah11-Jan-09 14:35
zaimah11-Jan-09 14:35 
GeneralRe: how to display files that are not in directory? Pin
Luc Pattyn11-Jan-09 15:22
sitebuilderLuc Pattyn11-Jan-09 15:22 
GeneralRe: how to display files that are not in directory? Pin
zaimah11-Jan-09 16:14
zaimah11-Jan-09 16:14 
GeneralRe: how to display files that are not in directory? Pin
Luc Pattyn11-Jan-09 16:45
sitebuilderLuc Pattyn11-Jan-09 16:45 
GeneralRe: how to display files that are not in directory? Pin
zaimah11-Jan-09 17:26
zaimah11-Jan-09 17:26 
GeneralRe: how to display files that are not in directory? Pin
Luc Pattyn11-Jan-09 18:32
sitebuilderLuc Pattyn11-Jan-09 18:32 
GeneralRe: how to display files that are not in directory? Pin
zaimah11-Jan-09 21:14
zaimah11-Jan-09 21:14 
GeneralRe: how to display files that are not in directory? Pin
Luc Pattyn12-Jan-09 2:24
sitebuilderLuc Pattyn12-Jan-09 2:24 

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.