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]MsgBox Fundamentals

Post[Tutorial]MsgBox Fundamentals

Posts 1–13 of 13 · Page 1 of 1
NextGen1
NextGen1
[Tutorial]MsgBox Fundamentals
[Tutorial] MsgBox Fundementals In Vb.net

On more then a few occasions questions have been raised in regards to MsgBox's , So, I fugure a MessageBox Tutorial is in order.


Code Snippets

Create a Standard MessageBox

Code:
MsgBox ("Your Message Here")
Or the one that is least known and least used

Code:
Interaction.MsgBox("Your Message Here")
Note: Both Work in the same capacity.

VB Abort, Retry , Cancel With Title

Code:
MsgBox("This is a messagebox with Abort, Retry Cancel, and You can set the Title of the messagebox", MsgBoxStyle.AbortRetryIgnore, "Title")
MsgBox and VbYes

Code:
Dim exitout As String
exitout = MsgBox("Would You Like To Exit?", Microsoft.VisualBasic.MsgBoxStyle.Exclamation + Microsoft.VisualBasic.MsgBoxStyle.YesNo + Microsoft.VisualBasic.MsgBoxStyle.MsgBoxHelp, "Title")
If exitout = vbYes Then
End
End If
Return a Value from msgbox

Code:
Dim ReturnV As Integer
ReturnV = MsgBox("This is a message box!",MsgBoxStyle.OKCancel + MsgBoxStyle******rmation + MsgBoxStyle.SystemModal, "Message Box")
If (ReturnV = MsgBoxResult.OK) Then
Label1.Text("OK button Has Been Clicked")
'Or use a messagebox, or a textbox or a listbox etc. etc. etc . 
End If
Icons

You will notice in alot of these examples I am using the code

Code:
Microsoft.VisualBasic.MsgBoxStyle.Exclamation
This allows you to display the Microsoft message box icon/Style you would like to display

Here is the list of icons and style of MsgBox to displa
y

Exclamation



Code:
Microsoft.VisualBasic.MsgBoxStyle.Exclamation
Information Icon



Code:
Microsoft.VisualBasic.MsgBoxStyle******rmation

Critical Error

[IMG]http://www.iconspedi*****m/uploads/1563569582.png[/IMG]

Code:
MsgBoxStyle.OkCancel + MsgBoxStyle.Critical
Question



Code:
MsgBoxStyle.OkCancel + MsgBoxStyle.Question
Hope this helps.
#1 · 16y ago
Blubb1337
Blubb1337
thanks for posting this tutorial might help some newbs =P
#2 · 16y ago
NextGen1
NextGen1
I received 3 PM(s) At-least regarding message box's and there has been 1 maybe 2 posts thats 4-5 times... Figured , it needed to be done
#3 · 16y ago
Zoom
Zoom
Easy to understand! Good job as always
Grattz on 1300posts
#4 · 16y ago
Snape
Snape
Good work!
#5 · 16y ago
Retoxified
Retoxified
Requests for tutorials on messageboxes? What the f* do these kids get in school o__O
#6 · 16y ago
Lolland
Lolland
Quote Originally Posted by Retoxified View Post
Requests for tutorials on messageboxes? What the f* do these kids get in school o__O
Most kids "learning" vb only learn it because they can't comprehend C++.

Anyways, good tut.
#7 · 16y ago
XG
XGelite_backup
nice. This was needed.
#8 · 16y ago
PO
poneboy00
I usually use this method

Code:
MessageBox.Show("Message", "Ttile", MessageBoxButtons., MessageBoxIcon.)
#9 · edited 16y ago · 16y ago
NextGen1
NextGen1
Quote Originally Posted by poneboy00 View Post
I usually use this method

Code:
MessageBox.Show("Message", "Ttile", MessageBoxButtons., MessageBoxIcon.)
Good to know..............

#10 · 16y ago
mnpeepno2
mnpeepno2
THANKSSSSSSSSSSSSSSSSSS!
#11 · 16y ago
why06
why06
Nice tutorial NextGen1!

Hmmmm... Don't mean to Hijack your thread, but lately I've been seeing that Critical Error Icon a lot. lol :P
#12 · 16y ago
NextGen1
NextGen1
Quote Originally Posted by why06 View Post
Nice tutorial NextGen1!

Hmmmm... Don't mean to Hijack your thread, but lately I've been seeing that Critical Error Icon a lot. lol :P
Maybe it's a sign from your computer that something is going to happen
#13 · 16y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

  • Msgbox Spam Tutorial (Annoy People With This)By jeffrophin in Visual Basic Programming
    12Last post 16y ago
  • Warrock Hack - TutorialBy Dave84311 in WarRock - International Hacks
    667Last post 18y ago
  • Photoshop TutorialsBy Dave84311 in Art & Graphic Design
    3Last post 20y ago
  • Tutorial Replies - Direct Memory Access (DMA) to Static Memory AddressesBy Dave84311 in General Game Hacking
    3Last post 20y ago
  • Gunz Hack - TutorialBy Dave84311 in General Game Hacking
    12Last post 20y ago

Tags for this Thread

#advanced#intermediate#msgbox#snippets#tutorial#vb.net#visual basic