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 › [Help]Convert decimal to Hex[Solved]

Question[Help]Convert decimal to Hex[Solved]

Posts 1–4 of 4 · Page 1 of 1
PP
ppl2pass
[Help]Convert decimal to Hex[Solved]
What is the function to convert decimal to hex?
#1 · 16y ago
NextGen1
NextGen1
Numerous

Note: wherever it says FromBase you can actually set the base
Example: 16,32,8,etc.

or just leave it as frombase

[php]
Convert a binary, octal, hexadecimal value to decimal


Dim byteC As Byte = Convert.ToByte(value, fromBase)
Dim ShortC As Short = Convert.ToInt16(value, fromBase)
Dim IntegerC As Integer = Convert.ToInt32(value, fromBase)
Dim longC As Long = Convert.ToInt64(value, fromBase)
[/php]

or

[php]
Dim dec As Integer = "Integer Value"
Dim hex As String = dec.ToString("X")
Dim decAgain As Integer = Integer.Parse(hex, System.Globalization.NumberStyles.HexNumber)
[/php]

[php]
Textbox1.text =Conversion.Hex(integer)
[/php]

[php]
Msgbox(Conversion.Hex(integer))
[/php]

[php]
Dim Val As Integer
Val = Convert.ToInt32("To Convert here", FromBase)
[/php]

16 being the base integer.
You can change that.

[php]
Dim s as string = "FF"
Dim value as Integer

value = val( "&h" & s )
[/php]

[php]
label1.text =Conversion.Hex(integer)
[/php]

or whatever

#2 · edited 16y ago · 16y ago
PP
ppl2pass
the values arent correct.

here is a list

Decimal:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Hex:
0 1 2 3 4 5 6 7 8 9 A B C D E F

so 10 = A
11 = B...

nvm found it

MsgBox(Conversion.Hex(integer))
#3 · edited 16y ago · 16y ago
NextGen1
NextGen1
Solved then
#4 · 16y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • [help]Convert String to Color[Solved]By mnpeepno2 in Visual Basic Programming
    10Last post 16y ago
  • [Help]Converting Char to Decimal[Solved]By Lolland in Visual Basic Programming
    2Last post 16y ago
  • [help] making a text to hex converter and vice versa[Solved]By PixyStyx in Visual Basic Programming
    5Last post 15y ago
  • [Help]String to Hex[Solved]By ppl2pass in Visual Basic Programming
    5Last post 16y ago
  • [Help]Convert VB6 code to VB.NET[Solved]By nathanael890 in Visual Basic Programming
    13Last post 16y ago

Tags for this Thread

None