BackgroundImage property not changing.
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.