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 › Visual Basics - Using Settings

Visual Basics - Using Settings

Posts 1–6 of 6 · Page 1 of 1
CoderNever
CoderNever
Visual Basics - Using Settings
Note : All Colors In Plain Text Refers to the Last Photo.

1. > Create a Project
2. > Click on Project (In the Toolstrip) and Select Application Properties


3. > Click on Settings



4. >> Settings Brief Explanation



Purple Arrow : The Purple Arrow is Pointing to the Variable name. For Example in this case it would be like typing Dim Setting. Except the Varibles Stay with in the application no matter if it closes or not.

Orange Arrow : The Orange Arrow is Pointing to the Variable type. Such as String , Integer , Etc

Blue Arrow : The Blue Arrow is Pointing to the Value which should match the type.

So if we wanted to convert a normal variable into one that saves it would be like this..

Dim Setting As String
Setting = "" (Value Considering theres nothing there).

Using Settings Out of Properties

Now that you set your setting you will have to know how to use it...

When you want a value saved as the setting you would type..

My.Setting.Setting = "Test"
My.Setting.Save()

Code Examples

1. > Saving a Textbox1's Date and Setting it to Load on Form Open.

Code:
Public Class Form1
    Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.FormClosing
        My.Settings.Setting = TextBox1.Text
        My.Settings.Save()
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        TextBox1.Text = My.Settings.Setting
    End Sub
End Class
2. > Saving a Checkbox's Status

Code:
Public Class Form1
    Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.FormClosing
        My.Settings.Setting = CheckBox1.CheckState
        My.Settings.Save()
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        CheckBox1.CheckState = My.Settings.Setting
    End Sub
End Class
Note : If you have any questions feel free to reply...if not reply anyway! lol
#1 · 16y ago
ac1d_buRn
ac1d_buRn
Very nice
Thanks for this..
#2 · 16y ago
Zoom
Zoom
Quote Originally Posted by Coder Never View Post
Note : All Colors In Plain Text Refers to the Last Photo.

1. > Create a Project
2. > Click on Project (In the Toolstrip) and Select Application Properties


3. > Click on Settings



4. >> Settings Brief Explanation



Purple Arrow : The Purple Arrow is Pointing to the Variable name. For Example in this case it would be like typing Dim Setting. Except the Varibles Stay with in the application no matter if it closes or not.

Orange Arrow : The Orange Arrow is Pointing to the Variable type. Such as String , Integer , Etc

Blue Arrow : The Blue Arrow is Pointing to the Value which should match the type.

So if we wanted to convert a normal variable into one that saves it would be like this..

Dim Setting As String
Setting = "" (Value Considering theres nothing there).

Using Settings Out of Properties

Now that you set your setting you will have to know how to use it...

When you want a value saved as the setting you would type..

My.Setting.Setting = "Test"
My.Setting.Save()

Code Examples

1. > Saving a Textbox1's Date and Setting it to Load on Form Open.

Code:
Public Class Form1
    Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.FormClosing
        My.Settings.Setting = TextBox1.Text
        My.Settings.Save()
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        TextBox1.Text = My.Settings.Setting
    End Sub
End Class
2. > Saving a Checkbox's Status

Code:
Public Class Form1
    Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.FormClosing
        My.Settings.Setting = CheckBox1.CheckState
        My.Settings.Save()
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        CheckBox1.CheckState = My.Settings.Setting
    End Sub
End Class
Note : If you have any questions feel free to reply...if not reply anyway! lol
Good and easy tutorial! Keep your good work up+++
#3 · 16y ago
Calebb
Calebb
Lawl, Now I don't gotta explain this to anybody now. Already explained it like 5 times. -.=
#4 · 16y ago
Zoom
Zoom
Quote Originally Posted by Calebb View Post
Lawl, Now I don't gotta explain this to anybody now. Already explained it like 5 times. -.=
Yeah tutorials are for help people!
#5 · 16y ago
Calebb
Calebb
Yeah gj though. Very well explained. It's noob spoon fed.
#6 · 16y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • Tutorial - How to use Visual Basics 6 (vb6) for WarRock hacksBy Oneirish in Visual Basic Programming
    17Last post 18y ago
  • Tutorial - How to use Visual Basics 6 (vb6) for WarRock "easy"By Oneirish in Programming Tutorials
    2Last post 18y ago
  • How to make a webbrower using Visual BasicsBy KyleForrest in Visual Basic Programming
    3Last post 17y ago
  • Packets & Visual BasicBy BadBob in Hack Requests
    5Last post 20y ago
  • [Help] Atom API with Visual Basic 6.0 or .NETBy Bull3t in Visual Basic Programming
    5Last post 20y ago

Tags for this Thread

#basics#settings#visual