Screensaver Tutorial

This is an easy one because you hardly have to do anything new. It's quite fun though especially if you have a fullscreen app. Surprise any other users of your PC as well :).

Making the Screensaver

Firstly to make your application fullscreen you set the forms border property to none and then set the size of the form to the screens size, me.height = screen.height etc. Make sure about scalemodes as these can mess it up. Also its a good idea to make and easy exiting option as there will not be a close button.

Now you will need the create a module and create a sub called sub main(). In this function call your startup form i.e. form1.show.

Open the project properties from the project menu and change the startup object to sub main.

Compile your program but call it filename.scr rather than filename.exe. Save the file in the C:\windows directory. Now the screensaver will appear on the normal screensvaer menu.

© Jonathan Waller 2005; QuantumState Visual Basic