Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. setting desktop wallpaper doesn't work

setting desktop wallpaper doesn't work

Scheduled Pinned Locked Moved C#
graphicsjsonquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    likefood
    wrote on last edited by
    #1

    If this has already been addressed, just point me in the right direction, please. I'm trying to make an automatic wallpaper changer (using that user32.dll api that everyone uses, although there are differences among the parameters they choose). What I've done works fine on a PC at work, but it won't work on my Inspiron e1505. I understand it not wanting to display anything but a bitmap, but it didn't even want to display bitmaps on the laptop. Does it have to do with my Inspiron's odd-sized display or something (it's wider than normal displays)? Any ideas?

    -Daniel Typing too fast fro my owngood

    J 1 Reply Last reply
    0
    • L likefood

      If this has already been addressed, just point me in the right direction, please. I'm trying to make an automatic wallpaper changer (using that user32.dll api that everyone uses, although there are differences among the parameters they choose). What I've done works fine on a PC at work, but it won't work on my Inspiron e1505. I understand it not wanting to display anything but a bitmap, but it didn't even want to display bitmaps on the laptop. Does it have to do with my Inspiron's odd-sized display or something (it's wider than normal displays)? Any ideas?

      -Daniel Typing too fast fro my owngood

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Can you post your code? We're otherwise in the dark.

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: The "Church" at Mt. Sinai The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      L 1 Reply Last reply
      0
      • J Judah Gabriel Himango

        Can you post your code? We're otherwise in the dark.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: The "Church" at Mt. Sinai The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

        L Offline
        L Offline
        likefood
        wrote on last edited by
        #3

        I guess the modifications I did to it (while using a work PC... yeah, I know, but I wasn't on the clock) did the trick. Now it works just fine. I was saving images using myBitmap.Save(string filename) when I should have been using myBitmap.Save(string filename, ImageFormat.Bmp). I don't know why that would make a difference, but it did. It still doesn't answer the question of why it wasn't displaying images that were originally bitmaps, but, hey, it works now. Thanks anyway!

        -Daniel Typing too fast fro my owngood

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups