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] Programmatically Creating / Updating a *.Resx File

[Tutorial] Programmatically Creating / Updating a *.Resx File

Posts 1–4 of 4 · Page 1 of 1
Hassan
Hassan
[Tutorial] Programmatically Creating / Updating a *.Resx File
Hi, I was working on a project and needed to add resources to the project in real time. This is done by updating the *.Resx file located in the project directory. Luckily browsing through the Resources namespace I found the ResXResourceWriter class. Before I demonstrate on how to use the class, take a look at what the .Resx file is:

A *.Resx file is a block of XML data that assigns name/value pairs for each resource in your application.

The ResXResourceWriter class provides a set of members that allow you to create the *.Resx files.

Let's create an independent *.Resx file.

■ First create a new project in vb.
■ On the main form, drag a button from the toolbox. Set its text to "Generate *.Resx File".
■ Now double click the button to go to its "Click" event. When the click event shows up, add the following code to it:

'Change to a valid picture location...
Dim PictureToAdd As String = "C:\Users\AUser\Pictures\30651_124206260947142_100 000733059464_175037_5040347_n.jpg"
'Change it to where you want to store your new *.Resx file...
Dim ResxFilename As String = "F:\ResXForm.resx"
'Create a new instance of the Writer...
Dim ResWriter As New ResXResourceWriter(ResxFilename)
'Create the bitmap...
Dim Pic As New Bitmap(PictureToAdd)
'Finally add the picture to your resources, here Kai Hiwatari is the name of the resource and Pic is the value of it. This means that the a new resource will be added with Kai Hiwatari as its name and the picture we defined above as its value...
ResWriter.AddResource( "Kai Hiwatari",Pic)
'Similarly create custom strings...
ResWriter.AddResource( "FlameSaber", "VB.NET Coder")
'Finally create the *.Resx file...
ResWriter.Generate()
'Close the writer so it can free the occupied resources...
ResWriter.Close()

■ Also, add this namespace to the form to refer the ResxResourceWriter class:

Imports System.Resources

Using the similarly technique, you can update the resources of your project in real time. All you need to do is change the variable "ResxFileName" to your project's *.Resx filename.

Here's where your values are added:


This becomes really helpful when you need to give some control to the end user.

Hope this helps !!
Enjoy !!
#1 · 16y ago
Zoom
Zoom
Awesome flame!
Thanks for sharing!
#2 · 16y ago
Invidus
Invidus
Wow good job flame!
AND GET THAT MINION
#3 · 16y ago
Lolland
Lolland
Good article
#4 · 16y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • Using only the Ipod touch to create and compile source filesBy radnomguywfq3 in C++/C Programming
    3Last post 17y ago
  • [RELEASE] Update on ltb filesBy treeham in Combat Arms Mods & Rez Modding
    3Last post 16y ago
  • How to post a Hack/File on MPGH + Hosting SitesBy Zoom in Combat Arms Hacks & Cheats
    3Last post 15y ago
  • Update on LTB filesBy treeham in Combat Arms Mod Discussion
    3Last post 16y ago
  • [Tutorial] How to post a Hack/File on MPGH.NET[Step by Step]By Zoom in Combat Arms Europe Hacks
    0Last post 16y ago

Tags for this Thread

#*.resx#create#update#vb.net