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. Visual Basic
  4. Simple Question....background.....

Simple Question....background.....

Scheduled Pinned Locked Moved Visual Basic
question
4 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.
  • D Offline
    D Offline
    daviiie
    wrote on last edited by
    #1

    What is the code to dynamically change the background. So fir instance, if I press a button the background image will change? Cheers.

    C 1 Reply Last reply
    0
    • D daviiie

      What is the code to dynamically change the background. So fir instance, if I press a button the background image will change? Cheers.

      C Offline
      C Offline
      Chatura Dilan
      wrote on last edited by
      #2

      Me.BackgroundImage = Image.FromFile("_file name_") example: Me.BackgroundImage = Image.FromFile("C:\myFile.jpg")

      Regards,

      Chatura Dilan

      If at first you don't succeed, try; try again, so that you know what not to do the next time. The answer is out there.

      D 1 Reply Last reply
      0
      • C Chatura Dilan

        Me.BackgroundImage = Image.FromFile("_file name_") example: Me.BackgroundImage = Image.FromFile("C:\myFile.jpg")

        Regards,

        Chatura Dilan

        If at first you don't succeed, try; try again, so that you know what not to do the next time. The answer is out there.

        D Offline
        D Offline
        daviiie
        wrote on last edited by
        #3

        I'm getting an error with the Me.BackgroundImage part. 'BackgroundImage' is not a member of 'WebApplication5.WebForm2'. Do I need to declare anything anywhere? Cheers.

        C 1 Reply Last reply
        0
        • D daviiie

          I'm getting an error with the Me.BackgroundImage part. 'BackgroundImage' is not a member of 'WebApplication5.WebForm2'. Do I need to declare anything anywhere? Cheers.

          C Offline
          C Offline
          Chatura Dilan
          wrote on last edited by
          #4

          Woop:omg:s…I mean Window form’s background. You mean Web form’s background. I think I cannot help for that question. Someone will help you or ask your question from ASP.Net forum

          Regards,

          Chatura Dilan

          If at first you don't succeed, try; try again, so that you know what not to do the next time. The answer is out there.

          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