Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 25th, 2003, 11:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Default How Do I...

I would like to write my own screen saver. I am not sure where to begin. I am not sure how to get it to take up the whole screen (hide task bar). I am also not sure how to make it a screen saver. I thought they were .SCR files. Do .exe files work as well, or do I have to compile it somehow to an .scr? Do I make it an .exe and then just rename it to .scr? I am pretty sure I can do most of anything having to do with no borders and some text possibly and making the program terminate with a mouse move event, but I am in need of assistance on the naming/compilation to the .scr and having it take up the entire screen. Any suggestions would be helpful. This is for our entire plant and we cannot use things like Webshots here and such.

Thanks in advance

Chris
__________________
Chris
 
Old August 26th, 2003, 05:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Chris,

I vaguely remember doing this many years ago. I can't remember all the hoops one has to jump through, but I can remember some of the things:
1. its just the same as an exe - you can either change the extension to .scr after compilation, or get it to compile to an scr file simply by changing the name in the file dialog box after you choose "make project"
2. On the Project > Properties > Make tab, the Title must begin with "SCRNSAVE:"
3. set the form's WindowState to "2 - Maximized" to make it fill the whole screen
4. use the SetWindowPos API call with param HWND_TOPMOST to make it come to the front.
5. use the ShowCursor API to hide the mouse pointer.

Couldn't you find any screensaver tutorials out there?

hth
Phil
 
Old September 10th, 2003, 08:35 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Chris,

Here is a link that will help you.

http://www.vb2themax.com/HtmlDoc.asp...rticles&ID=110

Yehuda









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.