kromax Posted February 21, 2008 Posted February 21, 2008 Hi, I'm experiencing a strange effect. I have a form with a backgroundimage set to a jpg in the relative property. I can see the image in the form ind the IDE, but when I start application the form has the system grey color and no image is displayed. I wrote several apllications and this is the first time it happens. Any suggestions. Thank you in advance. Kromax Quote
Machaira Posted February 21, 2008 Posted February 21, 2008 I'm guessing the jpg is in the same folder as the form? Are you copying the jpg to the bin\debug folder? Quote Here's what I'm up to.
kromax Posted February 22, 2008 Author Posted February 22, 2008 Hi, I do not load the image from code. As I wrote I've set the image in the BackGroundImage property choosing "Import" from "Local resource" in the dialog box. Then I effectively see the image in the form in editor, but when I launch the application this image does not appear and the form has the system grey background color. I tried also to set a backgroundimage on a command button, but it's the same: the image does not appear at runtime. Then I guess there is a wrong setting or coding somewhere I can't see. I've performed several times the same operation with other applications and they work fine, but not this one. Any suggestions? Quote
Administrators PlausiblyDamp Posted February 22, 2008 Administrators Posted February 22, 2008 Have you given the resource a locale that is different from the form itself? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
kromax Posted February 22, 2008 Author Posted February 22, 2008 I don't understand the word "locale" in "Have you given the resource a locale that is different from the form itself?" Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.