TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Adam Turner
NA
60
0
BackgroundImage property not changing.
Mar 21 2011 3:58 PM
I'm unable to change the BackgroundImage property of any of my windows form controls. Is there something I need to do after I change the BackgroundImage?
Example:
<code>
public void changeCheckBoxBGImage(string path)
{
if (!File.Exists("Skins\\" + path))
{
MessageBox.Show("Skins\\" + path + " does not exist.");
return;
}
checkedListBox1.BackgroundImage = Image.FromFile("Skins\\" + path);
}
</code>
I tried using this.Invalidate() and checkedListBox1.Invalidate() but no go. Is there some property on my form that would prevent my controls from changing their BackgroundImage property?
Feels strange. Any help?
*Oh I'm also able to change the background color of these controls, but it seems like it's just a problem with BackgroundImage.
Reply
Answers (
3
)
SQL Database to DataGridView in C#.Net
Drag and Drop Button Image