VB DIRECTDRAW programming tips and tricks

These are just a few tips and tricks I've discovered on my amazing trek through directdraw programming.

When you're doing fullscreen games and you move the mouse you will see ugly blocky things on the screen and the cursor is annoying. Just go
Public Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long

and at the beginning of your code just go
ShowCursor 0
and the cursor will be gone.
(Just make sure you turn it back on when the form unloads, ShowCursor 1)

When you're programming you will often make errors but with the fullscreen you can't minimize or anything! What I've discovered is go CTRL+BREAK, and then hit ALT+R and push Up on the keyboard twice, this ends the program. Then the problem VB was trying to tell you about will be highlited!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!