MSN Posted January 19, 2003 Posted January 19, 2003 I had created a Form application, that also included a picture embedded in the PictureBox. But when I went to Start the application, an Error Msg Dialog Box appeared. Then I tried creating a second Form showing the picture only, so I could include it in the Directory of the Form that I want the picture to be in. But of course, that didn't work, and still got the same Error Mesg. Please see the Attachment. Why couldn't the picture appear when I started the application? This is just a picture that was saved from the Internet. Thanks in advance MSN:confused: Quote
*Experts* Volte Posted January 19, 2003 *Experts* Posted January 19, 2003 OK, I'm not sure if this is your problem, but after 5 minutes of fiddling around, I managed to get this error. In the solution explorer, click the 'Show All Files' button (second from right) to show the hidden solution files. Now click the + beside your form. Click the 'Form1.resx' or whatever it is that expands and look at the property list. When I set 'Build Action' to 'None' I got this error, so make sure that it's set to 'Embedded Resource'. Quote
MSN Posted January 19, 2003 Author Posted January 19, 2003 VolteFace, I tried wut u mentioned. I no longer get the Error Dialog Box, but when I Started the application, the picture itself doesn't appear on the Form application. Everything else on the Form is fine, except for that darn picture. Thanks for your reply. MSN Quote
*Experts* Volte Posted January 19, 2003 *Experts* Posted January 19, 2003 Try removing the picture from the PictureBox and adding it again; the XML of the resource file may have been messed up when you compiled without it or something. Quote
MSN Posted January 19, 2003 Author Posted January 19, 2003 I went back to the "Build Action" & clicked on "Compile", saved it, Started the application, and bingo....the picture finally appeared! I don't know how that happened! Before this, I was adding code to make the "Clear Button" work. Then I did the above mentioned. Perhaps the Code for the Clear Button had something to do with it? I dunno! But I am glad it worked! Well, I guess you have to constantly fiddle around with VB.net to understand wut's going on! MSN Quote
*Experts* Volte Posted January 19, 2003 *Experts* Posted January 19, 2003 You changed it to Compile? The resource file? When I did that I got 108 build errors. :-\ Or are you talking about another file? 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.