Virtual Developer Workshop: Containerized Development with Docker
To start using your new screen saver template, your first step should be to copy the file "ScreenSaver.frm" to the "Template\Forms" directory which should be located inside the directory where VB resides on your computer. If this directory does not exist, create it exactly like the name above shows and copy the file into the directory you just created. Now when you start a new VB project and add a new form, you should see a template labeled "ScreenSaver" in the "Add Form" dialog box. If this doesn't work for you, see the troubleshooting section located at the bottom of this document before you proceed.
Now that you have put your new template into VB, let me tell you how to use it. First start a new VB project and add a new "Screen Saver" form as described in the end of the previous paragraph. Now you will need to give your project a name. Do this by highlighting your project in the "Project Explorer window, and typing a name in the "Name" section of the "Properties" window. Next you need to give your application a title and description. To do this, click on "Project" then "(Your project's Name) Properties" and go to the "General" tab. In the "Project Description" textbox, type "SCRNSAVE:" followed by the description of your screen saver. I used "SCRNSAVE: Sample Screen Saver" for my description. You always need to preceed your project description with "SCRNSAVE:" when making a screen saver so that Windows will know that this application is truly a screen saver. Now, to give your application a title, on the same dialog box, go to the "Make" tab. In the "Title" textbox type the title of your application, preceeded by "SCRNSAVE:" just as we did above with the project description. I used the title "SCRNSAVE: Sample Screen Saver". Now save your project and we can move on to the easy part.
This gets you started on your way to making your own screen saver, but it leaves the creativity up to you. My sample screen saver is very simple, but hopefully you can use it as a base to create some very cool screen savers. Don't forget, the purpose of a screen saver is to prevent screen burn-in, so make sure that your screen saver doesn't display any static images, or otherwise, you will defeat the whole purpose of your screen saver.
I am having problems getting my template form to appear in the "Add Form" dialog box.
Open VB and click on "Tools" then "Options" and go to the "Environment" tab. Make sure that the "Forms" checkbox is checked in the "Show Templates For:" frame. Also make sure that the "Templates Directory" textbox contains the path to VB's home directory with "\Template" attached to the end of it. For example, I am using VB5, and mine looks like this "C:\PROGRAM FILES\DEVSTUDIO\VB\Template". If this is not so, then you should copy the file "ScreenSaver.frm" to the "Forms" directory that is located within the directory shown in the "Templates Directory" textbox. If the "Forms" directory doesn't exist within the directory just mentioned, create it, then copy the file there.