Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Tutorial]Saving Checkbox True/False Statement

[Tutorial]Saving Checkbox True/False Statement

Posts 1–12 of 12 · Page 1 of 1
Blubb1337
Blubb1337
[Tutorial]Saving Checkbox True/False Statement
Well, credits probably go to Nextge1n for telling me =D

So basiclly what this does is the following:

It saves your "decession" whether you picked False/True.

If the usual value is false and you start your program and set it to true and restart your program, the checkbox will still be checked.

This saves a lot of time. I was actually about to do it way more complicated ->

Code:
Dim box as string

if checkbox1.checked = true
box = 1
Saving this into an .ini...

On form load...

Loading the .ini settings...

->
Code:
if box = 1 then
checkbox1.checked
else
checkbox.checked = false
Forget about my SHITTY idea!

Let's start

1. Go to your form properties(Project-Explorer -> Righ***ick on your project -> Properties)



2. Go to Settings

3. Change the Name "Settings" to "Checked" or whatever you want it to be.
Let's name it "Checked1337."

Hit enter.



Here comes the code...

On Checkbox1.checked event:

Code:
If checkbox1.checked = true Then
My.Settings.Checked1337 = "True"
else 
my.settings.checked1337 = "False"
end if
My.Settings.save
You might also use "1" instead of True or whatever you like..

On Form Load:

Code:
If My.settings.Checked1337 = "True" Then
checkbox1.checked = true
else
checkbox1.checked = false
end if
It should look like this:

Code:
Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If My.Settings.Checked1337 = "True" Then
            CheckBox1.Checked = True
        Else
            CheckBox1.Checked = False
        End If
    End Sub

  
    Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
        If CheckBox1.Checked Then
            My.Settings.Checked1337 = "True"
        Else
            My.Settings.Checked1337 = "False"
        End If
        My.Settings.Save()

    End Sub
End Class
This tutorial is very noob-friendly

Everyone should be able to understand it.

Thanks to nextgen1.

I didn't check if the code works, it should anyways.

Written by: Meh
Special Thanks to: Nextgen1 AGAIN for explaining me <3
#1 · 16y ago
XG
XGelite
mmmmmk.. .
#2 · 16y ago
Zoom
Zoom
Good for the beginners!
#3 · 16y ago
NextGen1
NextGen1
Good Job Posting it,
#4 · 16y ago
mnpeepno2
mnpeepno2
BASIC BASIC BASIC!!!
oh, and u can use my.settings...
#5 · 16y ago
Lolland
Lolland
What is this?

Meh thanks for the post I guess.

This section needs more activity IMO.
#6 · 16y ago
NextGen1
NextGen1
This section needs more activity IMO.
I agree. Sending you a Pm on somethings soon
#7 · 16y ago
Bombsaway707
Bombsaway707
Ehhh Good Job?
#8 · 16y ago
hopefordope
hopefordope
hey does this work for a textbox
#9 · 16y ago
NextGen1
NextGen1
Sorry, Lag had me double post.
#10 · edited 16y ago · 16y ago
NextGen1
NextGen1
Use

Use this on form close , or button, or on text1_changed
IO.File.WriteAllText("File Location to save + Filename.Extension", TextBox1.Text)


Use this in form load

TextBox1.Text = IO.File.ReadAllText("FileLocation/File.extension)
#11 · 16y ago
MugNuf
MugNuf
Quote Originally Posted by hopefordope View Post
hey does this work for a textbox
If you saying that i think you want then yes.

On form_load put this:

[php]If My.Settings.Checked1337 = "True" Then
CheckBox1.Checked = True
TextBox1.Text = "your text here"[/php]

Simple, that will load the textbox's text every time you load it .
#12 · 16y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

  • [Tutorial] VB Checkboxes/Superjump/Pointers/Password ProtectionBy mains3rv3r in WarRock - International Hacks
    26Last post 19y ago
  • [Tutorial]Saving/Loading a Listbox ContentsBy Bombsaway707 in Visual Basic Programming
    13Last post 16y ago
  • [Help] My.Settings to save checkboxes [solved]By Cryptonic in Visual Basic Programming
    7Last post 15y ago
  • [HELP] How do u save settings and check all checkboxes at once?By deathninjak0 in Visual Basic Programming
    15Last post 16y ago
  • [Help] MAKING A CHECKBOX TO SAVE LOGINBy Dreamer in Visual Basic Programming
    16Last post 16y ago

Tags for this Thread

None