C# Graphics Tutorial - Draw Directly to the Screen with User32.dll

  Рет қаралды 30,685

Brandon Hilde

Brandon Hilde

Күн бұрын

Пікірлер: 31
@danielol_99
@danielol_99 9 жыл бұрын
Is there a way to refresh all the screen with a method or something? thanks for the video!
@Eduardo-fx9ih
@Eduardo-fx9ih 3 жыл бұрын
very useful tutorial for this topic!!!
@immortalcake5972
@immortalcake5972 4 жыл бұрын
If you're getting an OutOfMemoryException on line 14, replace .FromHwnd with .FromHdc.
@cool_6042
@cool_6042 2 жыл бұрын
You're a legend! Thank you
@eqprog
@eqprog 11 жыл бұрын
Instead of using while (true), you can just add Console.ReadLine(); to the end of your main method so the program won't close.
@oskar7063
@oskar7063 3 жыл бұрын
@@lucasrdrgs no?
@BrandonHilde129
@BrandonHilde129 12 жыл бұрын
thank you for your comment!
@andreburto
@andreburto 11 жыл бұрын
Very nice video! Very well done, and a nice demo of using user32.dll to boot. Thanks!
@disappointedsquid
@disappointedsquid 4 жыл бұрын
████████╗██╗░░██╗░█████╗░███╗░░██╗██╗░░██╗░██████╗ ╚══██╔══╝██║░░██║██╔══██╗████╗░██║██║░██╔╝██╔════╝ ░░░██║░░░███████║███████║██╔██╗██║█████═╝░╚█████╗░ ░░░██║░░░██╔══██║██╔══██║██║╚████║██╔═██╗░░╚═══██╗ ░░░██║░░░██║░░██║██║░░██║██║░╚███║██║░╚██╗██████╔╝ ░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚══╝╚═╝░░╚═╝╚═════╝░ for the tutorial!
@Iumine
@Iumine Жыл бұрын
🤨
@MirekHeikkila
@MirekHeikkila 11 жыл бұрын
Awsome Vid, Very cool seeing you tamper with windows like that.. Plus i learn a lil at the same time.. great knowing this stuff because it leads you to code more funky out of the box stuff.. impressive :).. tnx
@RomanianProductions
@RomanianProductions 4 жыл бұрын
Instant sub, amazing video
@apurvakumardani172
@apurvakumardani172 3 жыл бұрын
Seems really funny
@BrandonHilde129
@BrandonHilde129 11 жыл бұрын
ya but if you do a loop you can call the draw method many times without having to reopen the program. Also I know about Console.ReadLine(); that is for accepting input into the program and i do use it in the program.
@ardhenismuhammadaflah7818
@ardhenismuhammadaflah7818 3 жыл бұрын
nice
@spartak31
@spartak31 12 жыл бұрын
thank you for your work
@kerdiangmiabok9704
@kerdiangmiabok9704 10 жыл бұрын
Thank you. Would appreciate if you could do a tutorial on realtime charting of data from serial comms or generated from a timer. Thanks once again.
@marcussacana
@marcussacana 8 жыл бұрын
and is possible make a eventhandler "onpaint" every frame of the system?
@BrandonHilde129
@BrandonHilde129 8 жыл бұрын
+marcus andré I don't think so. but there may be a way to do it.
@marcussacana
@marcussacana 7 жыл бұрын
i need this to overlay a game... He use python and don't looks is possible hook the directx from he (yes, i can just edit the python source, but i have some special circunstances...)
@hurnhu
@hurnhu 10 жыл бұрын
now how would i get this to redraw, when windows trys to paint over it?. so no matter what you do the picture will stay above everything?
@BrandonHilde129
@BrandonHilde129 10 жыл бұрын
Personally I think you will have more luck with using a borderless form and setting the TopMost property to true and making it fullscreen
@hurnhu
@hurnhu 10 жыл бұрын
DredricOne thats what i have, but id like to do it by just painting directly to the screen. that way i can avoid minimizing or something happening to the transparent form.
@emilebadenhorst889
@emilebadenhorst889 9 жыл бұрын
Can you publish source code please
@anela1420
@anela1420 9 жыл бұрын
Is that Notepad ++
@BrandonHilde129
@BrandonHilde129 9 жыл бұрын
Andjela Urosevic no that is visual studio
@anela1420
@anela1420 9 жыл бұрын
Ok. Thanks
@BrandonHilde129
@BrandonHilde129 9 жыл бұрын
here is the website: www.visualstudio.com/
@anela1420
@anela1420 9 жыл бұрын
Thank you
@JohnMarkIsaacMadison
@JohnMarkIsaacMadison 8 жыл бұрын
+Kollina Notepad++ is the best text editor ever. Close 2nd place is Sublime Text.
@moose43h
@moose43h 4 жыл бұрын
Lol you have no idea
C# Multi-Threading Tutorial
13:16
Brandon Hilde
Рет қаралды 162 М.
C# Programming - Drawing Using The Graphics Class
19:56
Bill Butterfield
Рет қаралды 84 М.
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 41 МЛН
Mom had to stand up for the whole family!❤️😍😁
00:39
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 45 МЛН
C# How to Use Paint and the C# Graphics Class to Draw Lines
37:36
Chris Merritt
Рет қаралды 198 М.
НОВАЯ LADA AURA. УДИВИТЕЛЬНЫЙ "ПРЕМИУМ".
29:34
AcademeG DailyStream
Рет қаралды 750 М.
Dawkins vs Peterson: Memes & Archetypes | Alex O’Connor Moderates | EP 491
1:32:04
How do Graphics Cards Work?  Exploring GPU Architecture
28:30
Branch Education
Рет қаралды 520 М.
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 41 МЛН