Whats that? O.ô 2x = in 1 line?Code:My.Settings.check1 = CheckBox1.Checked = True
Ok, so im trying to save 2 check boxes.
On click/formclosing
On loadCode:If CheckBox1.Checked = True Then My.Settings.check1 = CheckBox1.Checked = True Else My.Settings.check1 = CheckBox1.Checked = False End If If CheckBox2.Checked = True Then My.Settings.check2 = CheckBox2.Checked = True Else My.Settings.check2 = CheckBox2.Checked = False End If My.Settings.Save()
When it loads, both of them are always checked...Code:CheckBox1.Checked = My.Settings.check1 CheckBox2.Checked = My.Settings.check2
Whats that? O.ô 2x = in 1 line?Code:My.Settings.check1 = CheckBox1.Checked = True
Put on Form Close event
should work make sure u maked the settings type to boolean and the value set to falseCode:If CheckBox1.Checked = True Then My.Settings.check1 = True Else My.Settings.check1 = False End If ''' this was for checkbox 1 now for checkbox2 If CheckBox2.Checked = True Then My.Settings.check2 = True Else My.Settings.check2 = False End If
Or just put on the CheckChanged event of each CheckBox:
[highlight=vb.net]
My.Settings.check1 = CheckBox1.Checked
My.Settings.check2 = CheckBox2.Checked
My.Settings.Save()
My.Settings.Reload()
[/highlight]
Then on the form load do what you're already doing.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Cryptonic (03-27-2011)
https://www.mpgh.net/forum/33-visual-...ml#post2724971
I am sure you can edit it slightly to fit to your needs.
Last edited by Hassan; 03-27-2011 at 12:13 AM.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
JulianProHG (06-02-2018)