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 


more VB6 help needed

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Wed Mar 12, 2008 8:49 am    Post subject: more VB6 help needed Reply with quote

i made a combo box where user may add list entrys.
how i make the exe save that entrys?

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Mar 12, 2008 8:50 am    Post subject: Reply with quote

Save it to a text file and load it
Back to top
View user's profile Send private message
Orbit
Advanced Cheater
Reputation: 0

Joined: 09 Dec 2007
Posts: 74

PostPosted: Wed Mar 12, 2008 8:52 am    Post subject: Reply with quote

click on the combo box go to list click on the arrow and type your entrys
_________________
VB2008 Programmer Smile
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Wed Mar 12, 2008 8:54 am    Post subject: Reply with quote

GhostKiller13579 wrote:
click on the combo box go to list click on the arrow and type your entrys

i want the user to type in his entrys!

how do i make it save as txt AND load it again when the exe is loaded

_________________
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Wed Mar 12, 2008 10:19 am    Post subject: Reply with quote

For adding entries:
List1.AddItem "Entry"

Then save as a .txt file and read the .txt file on form loading event

Look that up in google if you don't know how to read/write text files

_________________
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Wed Mar 12, 2008 10:26 am    Post subject: Reply with quote

This reads the text from c:\test.txt and adds it to textbox1.text

Code:

 Dim FILE_NAME As String = "C:\test.txt"

Dim objReader As New System.IO.StreamReader(FILE_NAME)

TextBox1.Text = objReader.ReadToEnd

objReader.Close()




This will save the text from textbox1.text to c:\test.txt.

Code:

 Dim FILE_NAME As String = "C:\test2.txt"


Dim objWriter As New System.IO.StreamWriter(FILE_NAME, True)
objWriter.Write(" ")
objWriter.Write(TextBox1.Text)
objWriter.Close()

Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Wed Mar 12, 2008 12:21 pm    Post subject: Reply with quote

=.=
thats only a small part of what i need
how needs the textfile to be formated to get loaded into the list
then how do i load the entrys of the txt file
and how do i save the entrys of the list, that it could be readen by the prgramm later

_________________
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