Results 1 to 5 of 5

Thread: background image

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    9

    background image

    does anyone know how to change the background image using vb.net
    lets say the image is a jpg in the same directory as my program
    ??????????

  2. #2
    Addicted Member wolfofthenorth's Avatar
    Join Date
    Jan 2001
    Location
    Tatooine
    Posts
    169
    Try This.

    Me.BackgroundImage = Image.FromFile(Application.StartupPath + "\MyPicture.bmp")
    That which does not kill us, only makes us stronger.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    9
    Sorry, i ment the windows desktop image
    anyone?

  4. #4
    Addicted Member wolfofthenorth's Avatar
    Join Date
    Jan 2001
    Location
    Tatooine
    Posts
    169
    I'm not sure how to get a reference to the desktop, but You could try to change it in the registry.

    Does anyone know how to get a reference to the desktop in .NET without an API?
    That which does not kill us, only makes us stronger.

  5. #5
    New Member
    Join Date
    May 2002
    Location
    Germany
    Posts
    7
    Console.WriteLine(System.Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory))

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