Posted: Fri Jun 04, 2010 3:33 am Post subject: Browse dialog in vb6. Help!!!
I am making an app here using a browse dialog to open a file like text file or something but i don't know what code to write. Helping me would be great. thnx in advance.
Press CTRL+T then find and tick Microsoft Common Dialog Control 6.0 (SP6). Add the control to your form and then add this snippet i made quickly as an example wherever you want to use the browse dialog.
Code:
With CommonDialog1
.ShowOpen '.ShowSave
If (.FileName <> vbNullString) Then
'The file was chosen/dialog not canceled
'Do whatever you need to do to load the file
'Path = .FileName
End If
End With
And what about the save?
I mean saving all the stuffs from the listbox because whenever i save, only 1 thing is saved in the text file. thanks in advance. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum