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 


[HELP] VB2008 Settings

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Tue Mar 11, 2008 3:02 pm    Post subject: [HELP] VB2008 Settings Reply with quote

Basically I want to save the text of textbox1.text but its not working. The program that I will soon release will the best one out of all my releases so I need to know how to do this.
Code:

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

        My.Settings.Save.TextBox1.Text()

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

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Mar 11, 2008 3:24 pm    Post subject: Reply with quote

TextWriter class, in System.IO
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Tue Mar 11, 2008 4:09 pm    Post subject: Reply with quote

slovach wrote:
TextWriter class, in System.IO
Shocked

So what code would I put in my button

-------------------------

NVM, ill just save my setting to a file. Then form_load it will look for that file.
Back to top
View user's profile Send private message
jason744
Grandmaster Cheater
Reputation: 0

Joined: 25 Nov 2007
Posts: 638

PostPosted: Tue Mar 11, 2008 4:35 pm    Post subject: Reply with quote

Did you make a setting named textbox1?
And It would be in the textwriter class, live slovach said.
If so, In form SHown event:
Code:
Me.TextBox1.Text = My.Settings.TextBox1

In Form Closing event:
Code:
My.Setting.TextBox1 = Me.TextBox1.Text
My.Setting.Save()


My.Setting.Save saves all the settings, you can't tell it to save one.
You have to make a setting, in my project first.

And you have to declare the settings is connected with the text propertie of the textbox.
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Tue Mar 11, 2008 4:39 pm    Post subject: Reply with quote

jason744 wrote:
Did you make a setting named textbox1?
And It would be in the textwriter class, live slovach said.
If so, In form SHown event:
Code:
Me.TextBox1.Text = My.Settings.TextBox1

In Form Closing event:
Code:
My.Setting.TextBox1 = Me.TextBox1.Text
My.Setting.Save()


My.Setting.Save saves all the settings, you can't tell it to save one.
You have to make a setting, in my project first.

And you have to declare the settings is connected with the text propertie of the textbox.


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

Joined: 25 Nov 2007
Posts: 638

PostPosted: Tue Mar 11, 2008 4:51 pm    Post subject: Reply with quote

Make a setting called textbox1 and put it as writer thingy class.
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Tue Mar 11, 2008 4:58 pm    Post subject: Reply with quote

jason744 wrote:
Make a setting called textbox1 and put it as writer thingy class.

ya, I dont know how to do that.
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