Solved

How to make a complete Screen saver in vb5

Posted on 1998-05-29
9
208 Views
Last Modified: 2010-05-03
How make a complete SS in VB5? I know the code "/s" and "/c", but I wanted to know how can I enable the password button and how to put the little bitmap in the "video" that appears in the video propeties dialog box...
0
Comment
Question by:ruyluis
  • 4
  • 4
9 Comments
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1462025
To the best of my knowledge a screensaver is just a application renamed *.Scr instead of *.exe, The password can be enabled through the standard display propeties. Do u mean by "video" the preview small screen when you choose a screen saver.

0
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 50 total points
ID: 1462026
When you need to display something in the preview screen, your app is called with the /p switch followed by the device context, like /p1272. You can just BitBlt the bitmap. The Password button is handled automaticly by Windows
0
 

Author Comment

by:ruyluis
ID: 1462027
OK, but how can I know the number of device? And I think the password button isn't handled automaticly, you need the "/a " command and the follow number...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Expert Comment

by:MikeP090797
ID: 1462028
Dim hDC as long
hDC=CLng(Right(Command$, Len(Commmand$)-2))
0
 

Author Comment

by:ruyluis
ID: 1462029
Can you give me an example of bitblt function use?
0
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1462030
BitBlt hDCDest, 0, 0, Pic1.Width, Pic1.Height, pic1.hdc, 0, 0, vbSrcCopy
0
 

Author Comment

by:ruyluis
ID: 1462031
Great, Mike!! You're realy an expert! I've been looking for these answers a lot of time and now... here Mike! Well, I have one more question to you, please. What is the first argument in the bitblt function to the preview screen saver? Thank you a lot!
0
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1462032
The first param is the device context handle, it tells BitBlt where to put the bmp. You get it from the /p switch
0
 

Author Comment

by:ruyluis
ID: 1462033
OK, mike, but isn't working! I write something like this:
x=Bitblt(hDC,0,0,60,60,Form2.picture1.hDC,0,0,vbSrcCopy) and the bitmap from Form2.picture1 doen't appears in the preview of Screen Saver. What is wrong? (I write load form2, before).
P.S. Have you a  code in VB5 to make a Screen Saver? With a real example maybe I can understand better this. My e-mail is ruyluis@sti.com.br. Thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best way to parse out a json string in VB6? 10 277
Excel - Save a copy of work book 13 91
Can we place a tooltip on the actual vb6 form 5 50
vbModal 12 65
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question