Results 1 to 10 of 10

Thread: VB - Put the desktops background as forms background

  1. #1

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    VB - Put the desktops background as forms background

    VB Code:
    1. Private Declare Function PaintDesktop Lib "USER32" (ByVal HDC As Long) As Long
    2.  
    3. Private Sub Command1_Click()
    4.  PaintDesktop Me.HDC
    5. End Sub
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  2. #2

  3. #3
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Yeah, I have noidea why it does that.

    Thats pretty cool though, its like X-Ray vision.

  4. #4

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    I haven't been able to find the NT version of that code. It does work on: win95, 98, xp however.
    Last edited by Nightwalker83; Mar 17th, 2003 at 05:34 AM.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573
    However it does work on my WinNT computer.
    VB version in that machine is 5.

  6. #6
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Works fine on my NT machine, and my 2k machine.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  7. #7

  8. #8
    Fanatic Member seec77's Avatar
    Join Date
    Jan 2003
    Posts
    596
    maybe you should try setting the "autoredraw" property of the form to true
    Best Regards,
    seec77

    If you helped me, cosinder yourself thanked.

    Get each and every Garfield strip here!
    Here you can get all Calvin & Hobes strips!
    Damn UComics! It was probably unprofitable for them to allow us to just download Garfield and Calving & Hobes strips... so they made folder indexing unallowed on their server!!!

    I am 33% addicted to Counterstrike. What about you?
    I am 23% addicted to Star Wars. What about you?
    I am 0% addicted to Tupac. What about you?

  9. #9
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    How can you prevent the form from clearing when it disappears?

    Obviously without putting that code in the resize event

    I thnk thats what Martin is on about.

    If you set autoredraw to true, on XP atleast, it doesn't do anything at all.

  10. #10
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    It appears that it depends on the type of picture. For example on my home NT machine if I choose the "Seaside 16" and "Zapotec 16" backgrounds the code in this sample works, but if I choose type of picture. For example on my home NT machine if I choose the "Seaside" and "Zapotec" it doesn't. Does that mean that it only works with 16-bit pictures?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width