Click here to Skip to main content
15,912,329 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionguidance in visual basic [modified] Pin
spruha36920-Feb-09 17:52
spruha36920-Feb-09 17:52 
AnswerRe: guidance in visual basic Pin
Eddy Vluggen20-Feb-09 23:17
professionalEddy Vluggen20-Feb-09 23:17 
QuestionHow can I iterate all of the directories in a specific drive? Pin
JUNEYT20-Feb-09 10:41
JUNEYT20-Feb-09 10:41 
AnswerRe: How can I iterate all of the directories in a specific drive? Pin
vaghelabhavesh20-Feb-09 10:52
vaghelabhavesh20-Feb-09 10:52 
GeneralRe: How can I iterate all of the directories in a specific drive? Pin
JUNEYT20-Feb-09 11:18
JUNEYT20-Feb-09 11:18 
AnswerRe: How can I iterate all of the directories in a specific drive? Pin
Gideon Engelberth20-Feb-09 10:53
Gideon Engelberth20-Feb-09 10:53 
GeneralRe: How can I iterate all of the directories in a specific drive? Pin
JUNEYT20-Feb-09 11:17
JUNEYT20-Feb-09 11:17 
GeneralRe: How can I iterate all of the directories in a specific drive? Pin
Samir Ibrahim21-Feb-09 0:19
Samir Ibrahim21-Feb-09 0:19 
Hi Gideon

I am interested with your approach, I know what do you mean by "something like this", it needs a little fine tuning.

I had this code which is stayed in forever loop and I could not tell why?

' Command Click
Dim RootDir As New IO.DirectoryInfo("C:\MyFolder")
Call Module1.CheckDirectories(RootDir)

' Module1.CheckDirectories
Public Sub CheckDirectories(ByVal root As IO.DirectoryInfo)
    For Each file In root.GetFiles("*.txt")
        Debug.Print(file.Name) 'process the file
    Next
    For Each subDir In root.GetDirectories()
        CheckDirectories(root)
    Next
End Sub


TIA

Samir R. Ibrahim

GeneralRe: How can I iterate all of the directories in a specific drive? Pin
Alan N21-Feb-09 1:43
Alan N21-Feb-09 1:43 
GeneralRe: How can I iterate all of the directories in a specific drive? Pin
Samir Ibrahim21-Feb-09 2:12
Samir Ibrahim21-Feb-09 2:12 
QuestionHow to play a muli-track avi file Pin
Franchuu20-Feb-09 8:27
Franchuu20-Feb-09 8:27 
AnswerRe: How to play a muli-track avi file Pin
Dave Kreskowiak21-Feb-09 7:39
mveDave Kreskowiak21-Feb-09 7:39 
GeneralRe: How to play a muli-track avi file Pin
Franchuu21-Feb-09 21:59
Franchuu21-Feb-09 21:59 
GeneralRe: How to play a muli-track avi file Pin
Franchuu22-Feb-09 0:55
Franchuu22-Feb-09 0:55 
QuestionCreating an Excel Workbook in VB.NET 2008 Pin
Like2Byte20-Feb-09 6:39
Like2Byte20-Feb-09 6:39 
AnswerRe: Creating an Excel Workbook in VB.NET 2008 Pin
DaveAuld20-Feb-09 7:09
professionalDaveAuld20-Feb-09 7:09 
GeneralRe: Creating an Excel Workbook in VB.NET 2008 Pin
Like2Byte20-Feb-09 7:21
Like2Byte20-Feb-09 7:21 
QuestionDisplay Data In Datagrid - Error Pin
Member 367504720-Feb-09 1:45
Member 367504720-Feb-09 1:45 
AnswerRe: Display Data In Datagrid - Error Pin
Dave Kreskowiak20-Feb-09 2:05
mveDave Kreskowiak20-Feb-09 2:05 
GeneralRe: Display Data In Datagrid - Error Pin
Member 367504720-Feb-09 2:32
Member 367504720-Feb-09 2:32 
GeneralRe: Display Data In Datagrid - Error Pin
Dave Kreskowiak20-Feb-09 3:31
mveDave Kreskowiak20-Feb-09 3:31 
GeneralRe: Display Data In Datagrid - Error Pin
Member 367504720-Feb-09 3:58
Member 367504720-Feb-09 3:58 
QuestionHow can I solve "Cross-thread operation not valid" error? Pin
JUNEYT20-Feb-09 1:22
JUNEYT20-Feb-09 1:22 
AnswerRe: How can I solve "Cross-thread operation not valid" error? Pin
Dave Kreskowiak20-Feb-09 2:04
mveDave Kreskowiak20-Feb-09 2:04 
QuestionCreate Barcode True Type Font Pin
Anubhava Dimri19-Feb-09 22:36
Anubhava Dimri19-Feb-09 22:36 

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.