473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1556
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

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

Similar topics

1
by: Buddy | last post by:
Hello, I need to know how can I generate a .resx file from code for different language culture. Basically the .resx file is in binary, is there anyway that I can generate a text file contains...
0
by: Nick | last post by:
Hi, I would like to know how to attach a RichTextBox which auto scale with Windows Form? Thanks Nick
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
1
by: Nathon Dalton | last post by:
I have created a project with a form called SetupBodyTemplate. I have created a second inherited form called Demographics which inherits from SetupBodyTemplate. I've created several of these...
0
by: Chance Hopkins | last post by:
I'm having trouble calling an interop dll from a asp.net web page. I think the problem is the activex dll (when called from a windows csharp form) launches a windows form with a progress bar. ...
2
by: Miky | last post by:
Hi, I have the following problem: I have a .CFM web page and I have to populate, from VB, two textboxes on it. I was thinking using sendkeys (even if I don't like it too much) but when I...
8
by: Alison | last post by:
Hi, Al I am trying to design a user interface which provides both menus and toolbars for some users to click on whatever they want to do, at the same time, I would like to have a console window...
4
by: newbie | last post by:
Hi, I have a windows form written in C#. The form has multiple textboxes and multiple buttons. I want to create a form where when the users clicks on a particulat textbox and then clicks on a...
0
by: babis | last post by:
i have a problem with windows form design, here is my problem : i want to make master_company, where each company has one or more companyAddress. do you have any suggestion for me?
0
by: amitsingh014 | last post by:
I am trying to implement Exporting of datagrid to PDF file in Windows form c#... but its showing numerous errors. Like it isn't recognizing 'response' keyword? I tried to find it out on internet but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.