• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

How to make a complete Screen saver in vb5

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
ruyluis
Asked:
ruyluis
  • 4
  • 4
1 Solution
 
MAVERICKCommented:
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
 
MikeP090797Commented:
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
 
ruyluisAuthor Commented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
MikeP090797Commented:
Dim hDC as long
hDC=CLng(Right(Command$, Len(Commmand$)-2))
0
 
ruyluisAuthor Commented:
Can you give me an example of bitblt function use?
0
 
MikeP090797Commented:
BitBlt hDCDest, 0, 0, Pic1.Width, Pic1.Height, pic1.hdc, 0, 0, vbSrcCopy
0
 
ruyluisAuthor Commented:
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
 
MikeP090797Commented:
The first param is the device context handle, it tells BitBlt where to put the bmp. You get it from the /p switch
0
 
ruyluisAuthor Commented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now