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 › [Tut + Source] Screen Capture VB08

[Tut + Source] Screen Capture VB08

Posts 1–7 of 7 · Page 1 of 1
stevethehacker
stevethehacker
[Tut + Source] Screen Capture VB08
Here is a tutorial on how to make a screen capture. This program also allows you to save the picture to your computer.
1. Open up a new project and add 2 buttons,Savefiledialog,and a picturebox
2. Copy and paste
3. Press Thanks
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim bounds As Rectangle
        Dim screenshot As System.Drawing.Bitmap
        Dim graph As Graphics
        bounds = Screen.PrimaryScreen.Bounds
        screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
        graph = Graphics.FromImage(screenshot)
        graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
        PictureBox1.Image = screenshot
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim savefiledialog1 As New SaveFileDialog
        Try
            savefiledialog1.Title = "Save File"
            savefiledialog1.FileName = "*.bmp"
            savefiledialog1.Filter = "Bitmap |*.bmp"
            If savefiledialog1.ShowDialog() = DialogResult.OK Then
                PictureBox1.Image.Save(savefiledialog1.FileName, System.Drawing.Imaging.ImageFormat.Bmp)
            End If
        Catch ex As Exception

        End Try
    End Sub

End Class
When your done it should look like this. The screenshot will be the full width and height of your desktop

Here is download for the program
VIrus scan
#1 · edited 16y ago · 16y ago
LA
Laxitive
cool. thx I was looking for 1 because none of the others work
#2 · 16y ago
luongoo
luongoo
i had one on my os simulator project :P pity how u cant make the preview smaller
#3 · 16y ago
stevethehacker
stevethehacker
Quote Originally Posted by luongoo View Post
i had one on my os simulator project :P pity how u cant make the preview smaller
ya I couldnt find a way how to but it doesn't really matter
#4 · 16y ago
XG
XGelite
doesnt windows have one built in? "print screen" lol but thx anyways
#5 · 16y ago
stevethehacker
stevethehacker
with hotkeys you could take multiple in a game and save them all and a lot of older computers don't have that button
#6 · 16y ago
XG
XGelite
most games now when you press printscreen it saves a different file everytime you press it.
and everybody that has a computer has a print screen on the keyboard. that was a while ago that it wasn't mainstream. in fact i have a keyboard from when i used windows 95 that even has it. :P and nobody has that old of a computer anymore that plays games.

but w/e, it helps beginners learn :P
#7 · 16y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • Screen Capture Source CodeBy Pixie in Visual Basic Programming
    0Last post 17y ago
  • screen capture program [TUT]By /b/oss in Visual Basic Programming
    9Last post 16y ago
  • [PIC TuT] Login screenBy m60 in Visual Basic Programming
    2Last post 17y ago
  • Any c# tuts, source codes, anything?!?!?!By t7ancients in C++/C Programming
    5Last post 17y ago
  • [TUT] Gray Screen saver on warrockBy ktalin91 in WarRock Korea Hacks
    0Last post 19y ago

Tags for this Thread

#capture#screen#source#tut#vb08