• 0

[VB] Change Folder of File List Box?


Question

I want to include a file list box in my program but I need it to point to a directory other tha nthe one the program resides in. How do I change the target directory?

I'm using VB6

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
File1.Path = "C:\whatever\blah blah"

It won't work.

I have 2 forms, formCreator and formReader.

When I click a button, formCreator is mad invisible and formReader is made visible. On form load for formReader i have the following code:

Private Sub Form_Load()

miscStat = 0

txtMisc.Text = ""

filePoem.Path = "C:\Chris\Poems"

End Sub

however when I run the program, i get an object 426 error: object needed.

what am i doin wrong?

nevermind! the filelistbox is called filePoems. i left out the damn S

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.