Results 1 to 6 of 6

Thread: [RESOLVED] [2005] Resources?

  1. #1

    Thread Starter
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Resolved [RESOLVED] [2005] Resources?

    Ok this is really annoying me.
    Ive added a jpg file to my project (Project menu -> Add Existing Item...)
    Now I'm looking for a way to put this jpg file as the forms background. I've searched these forums and found lots of posts about it, tried loads of code but never got it to work.(I dont have the code anymore so I cant show it, but I remember the error: "the stream cant be 'null' " or something like that)
    Could someone please guide me through this, step by step?

    Thanks in advance
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Resources?

    you don't actually need to add the jpg to the project to make it a forms background.

    you can just assign that property of the form at designtime, and the image will be put in the forms resx file, and compiled into the exe.

  3. #3
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Re: [2005] Resources?

    Cant u just set the background image in the properties box to the image you want?
    Hope this helps

  4. #4

    Thread Starter
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] Resources?

    @ kleinma:

    ooh!

    so easy :P how embarrasing
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  5. #5

    Thread Starter
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] Resources?

    Just tried it and it works just like i want it too^^
    No reason for me to get a headache over resource stuff then....yet


    Thanks!
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  6. #6
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [RESOLVED] [2005] Resources?

    It only pays to use it as a resource if you are using it in other places in your app. That would avoid the exe adding the same image twice, increasing the exe size. If the forms background is the only place you are using that image, its just a lot easier to assign it directly to the form and let the IDE handle the rest.

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