469,903 Members | 1,525 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

C# 2005-Windows Application-imagelist settings problems

okay heres my problem;
i want to add image K to a imagelist, thats easy. The hard part is that the imagelist was made in Application Settings. **I made the imagelist in application settings so i could eventually add in code which would make its value saved when the form closes** But every time i use something like this
Expand|Select|Wrap|Line Numbers
  1. image k = toolstrip1.backgroundimage;
  2. Settings.Default.kill.Images.Add(k);
**kill is the name of the imagelist**
i get this error which says- "Null reference was unhandled". The problem isnt with the image k, its with the kill imagelist.
In the application settings, i cant seem to even give imagelist a value and it seems to me the only time i can even give it a value is before the image starts.
So how can i add a value to the imagelist, without getting this error or any error
Oct 18 '07 #1
0 1050

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by mscotto | last post: by
reply views Thread by Marcel - IDUG Europe 2004 | last post: by
reply views Thread by Marcel - IDUG Europe 2005 | last post: by
9 posts views Thread by William LaMartin | last post: by
2 posts views Thread by Peter Stojkovic | last post: by
9 posts views Thread by Leon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.