By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,064 Members | 1,542 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,064 IT Pros & Developers. It's quick & easy.

Some problem with the windows form

Ajay Bhalala
100+
P: 119
Hello all,

I have one form named MainPage in vb.net.

In this form I have put 1 image as background image of the form at design time using BackgroundImage property. and I also put 1 menustrip in this form, and I have written all the name of the menus in the menustrip. Then I run my form, there is no error in this form.

But when I have changed my background image, in the form at design time, there is error occurred, and then I made some changes in my application then errors gone away, but what I have written into the menustrip is erased. and when I clicked on menustrip "Type Here" is displayed. Can anyone say why this happened? and now what can I do other then writing again all the name of the menus in menustrip?

I have written all the menu items in the menustrip again, and after writing, when I click on the CodeEditorWindow there is MsgBox is displayed

MsgBoxTitle:Microsoft Visual Basic 2008 Express Edition

MsgBox Content:Code generation for property 'Items' failed. Error was: 'Could not find file 'E:\Brinda & Jay\Brinda\02 S.Y\VB.NET\My Project\My Project\Resources\BackgroundImagewithCollegePhoto. jpg'.'

MsgBox have only one button "OK".

Every time when I make changes or only click on the form in deisgn, and then I make any activity outside the form design, this msgbox is displayed.
Dec 28 '14 #1

✓ answered by Frinavale

What change did you make to get the background to work?
This might be causing a problem...

It's pretty hard to help without seeing what you are doing in code with regards to the background and the menu.

Share this Question
Share on Google+
4 Replies


Frinavale
Expert Mod 5K+
P: 9,731
What change did you make to get the background to work?
This might be causing a problem...

It's pretty hard to help without seeing what you are doing in code with regards to the background and the menu.
Jan 5 '15 #2

Ajay Bhalala
100+
P: 119
I have used the "BackgrounImage" property to change the background image. I have not made any changes in my code, I just changed the background image of my form.

My form was working properly until I have change my background image 6th time.

Thank you so much for your reply.
Jan 7 '15 #3

P: 3
Hey there,

You could try adding the image to your resources first.

Go to your project's properties page and then resources. Click on the arrow thats right next to the Add Resource button and select Add Existing File to add your image. Go back to your form's properties and select the image from the "BackgroundImage" popup window.

Hope this helps.
Jan 15 '15 #4

Ajay Bhalala
100+
P: 119
Thanks for your suggestion, gabemr.
But I also tried this. but there is nothing can be done.
Jan 16 '15 #5

Post your reply

Sign in to post your reply or Sign up for a free account.