468,110 Members | 1,872 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,110 developers. It's quick & easy.

Some problem with the windows form

Ajay Bhalala
119 64KB
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.

4 1280
Frinavale
9,735 Expert Mod 8TB
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
119 64KB
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
gabemr
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
119 64KB
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.

Similar topics

1 post views Thread by Nathon Dalton | last post: by
reply views Thread by Chance Hopkins | last post: by
2 posts views Thread by Miky | last post: by
4 posts views Thread by newbie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.