Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Browse dialog in vb6. Help!!!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
M.CORP
Grandmaster Cheater Supreme
Reputation: 28

Joined: 28 Oct 2009
Posts: 1010

PostPosted: Fri Jun 04, 2010 3:33 am    Post subject: Browse dialog in vb6. Help!!! Reply with quote

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.

Sorry for my bad english.

_________________
Shameless Self Advertising Very Happy!
Steam
Just lurking around...
Back to top
View user's profile Send private message
Jesper
Grandmaster Cheater Supreme
Reputation: 9

Joined: 21 Feb 2007
Posts: 1156

PostPosted: Fri Jun 04, 2010 7:55 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
M.CORP
Grandmaster Cheater Supreme
Reputation: 28

Joined: 28 Oct 2009
Posts: 1010

PostPosted: Sat Jun 05, 2010 10:10 pm    Post subject: Reply with quote

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.

_________________
Shameless Self Advertising Very Happy!
Steam
Just lurking around...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites