|
-
March 21st, 2011, 02:55 PM
#1
Unable to change background image for controls
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?
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
|