bangbang023 Veteran Posted December 16, 2002 Veteran Share Posted December 16, 2002 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 More sharing options...
0 sphere Posted December 16, 2002 Share Posted December 16, 2002 File1.Path = "C:\whatever\blah blah" Link to comment Share on other sites More sharing options...
0 bangbang023 Veteran Posted December 16, 2002 Author Veteran Share Posted December 16, 2002 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 More sharing options...
0 sphere Posted December 16, 2002 Share Posted December 16, 2002 glad to help... even if it was only to make you realise your mistake :) Link to comment Share on other sites More sharing options...
Question
bangbang023 Veteran
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