Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

  • *Experts*
Posted

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'.

Posted

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

  • *Experts*
Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...