DirectX and DirectDraw are things I’m trying to learn how to do, especially directdraw. I’ve tried a few various tutorials showing how to draw images or shapes but I’ve never been able to do them because visual basic always crashes. Not really, it just stops working for reasons that I will come to.

Okay, so I create a new project and go to references. First I reference the Microsoft.DirectX.dll. Now all of a sudden my computer starts working hard(the fan turns on and starts making a racket). Next I reference the Microsoft.DirectX.DirectDraw.dll. All is good. Next step in the tutorial, I put this in the top of my form’s code(this doesn’t need to be added to make it crash):

Code:
Imports Microsoft.DirectX
Imports Microsoft.DirectX.DirectDraw
Now the problem arises. There are two ways of getting it to happen. #1 is to run the project and #2 is to save the project. After i run it nothing happens. Then after a little bit a message comes up. It’s the “Delay Notification” thing which has the “Switch To…” and “Continue Waiting” buttons”. Neither of them do anything (the message just comes up the next time I click on vb2010) and I have to end the program through task manager. After a little wait another dialog comes up that says “vshost32.exe has encountered a user-defined breakpoint.” Now I can’t hear the fan anymore and the computer is calm. I'm not sure if it makes a difference but i'm using the express version of vb.net so maybe that's the problem.