|
-
Oct 16th, 2006, 09:39 AM
#1
[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
-
Oct 16th, 2006, 09:53 AM
#2
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.
-
Oct 16th, 2006, 09:55 AM
#3
Fanatic Member
Re: [2005] Resources?
Cant u just set the background image in the properties box to the image you want?
Hope this helps
-
Oct 16th, 2006, 09:56 AM
#4
-
Oct 16th, 2006, 10:07 AM
#5
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!
-
Oct 16th, 2006, 10:08 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|