473,698 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forms not loading pls help!

Ok, I'm a C# newbie.

W/o making any changes to forms themselves, I used to be able to click on a
form and it would open. Now for some forms I'm getting an error saying "An
error occurred while loading the document. Fix the error, and then try
loading the document again."

Can someone give me an idea of what could be wrong?

--B. Cavour
Dec 7 '05 #1
3 1615
Hi,

Is this in the designer?

If so, most probably some .resx files are corrupted , get the correct .resx
file based on the form that does not open, rename it and load the project
again and try to open the form in the designer

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"B. Cavour" <ca*****@thirdh ayz.net> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
Ok, I'm a C# newbie.

W/o making any changes to forms themselves, I used to be able to click on
a form and it would open. Now for some forms I'm getting an error saying
"An error occurred while loading the document. Fix the error, and then
try loading the document again."

Can someone give me an idea of what could be wrong?

--B. Cavour

Dec 7 '05 #2
Yes it is in the designer.
I tried what you did and it still did not work

It's happening to every form now.

The odd thing is that everything builds and executes correctly

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
in message news:eE******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi,

Is this in the designer?

If so, most probably some .resx files are corrupted , get the correct
.resx file based on the form that does not open, rename it and load the
project again and try to open the form in the designer

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"B. Cavour" <ca*****@thirdh ayz.net> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
Ok, I'm a C# newbie.

W/o making any changes to forms themselves, I used to be able to click on
a form and it would open. Now for some forms I'm getting an error saying
"An error occurred while loading the document. Fix the error, and then
try loading the document again."

Can someone give me an idea of what could be wrong?

--B. Cavour


Dec 7 '05 #3
Fixed the problem.

Commented out the InitializeCompo nent(); from the source and then clicked on
the design. It forced it to compile again. Then I uncommented Init... and
it worked after that.

I still don't know how this problem was started.

Hope this helps someone.
"B. Cavour" <ca*****@thirdh ayz.net> wrote in message
news:Od******** *******@TK2MSFT NGP10.phx.gbl.. .
Yes it is in the designer.
I tried what you did and it still did not work

It's happening to every form now.

The odd thing is that everything builds and executes correctly

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us >
wrote in message news:eE******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi,

Is this in the designer?

If so, most probably some .resx files are corrupted , get the correct
.resx file based on the form that does not open, rename it and load the
project again and try to open the form in the designer

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"B. Cavour" <ca*****@thirdh ayz.net> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
Ok, I'm a C# newbie.

W/o making any changes to forms themselves, I used to be able to click
on a form and it would open. Now for some forms I'm getting an error
saying "An error occurred while loading the document. Fix the error,
and then try loading the document again."

Can someone give me an idea of what could be wrong?

--B. Cavour



Dec 7 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5098
by: Matthew | last post by:
I am not the most talented programmer to grace the earth by a long shot. But I've got a gripe I need to air about the .NET implementaion of Visual Basic. I can live with alot of the major changes to the structure and syntax of the code but I thought the purpose of re-engineering the damn thing would result in improved performance all around, well the .NET seems to really suck doing things graphically on forms that VB6 Seemed to do fine....
19
4101
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
2
1974
by: Rob | last post by:
I was working on a project and everything was going fine, then all of a sudden the form set as my startup object stopped loading. I tried setting some others as the startup object, and some of my forms will load and others won't. Those that won't load at startup don't load with the Show or ShowDialog command either. Can anyone give me a hint as to what went wrong?
4
9913
by: Scott Johnson | last post by:
Hi! Is there a way to "preload" a form using a thread or something else so that my user doesn't have to wait 5 seconds (initializing time) between forms? Some of these forms have tab strips with lots of controls and database queries on them and I would like to try to have some(all) of the preloading of the next form and controls done in the background while a user is still entering data. (For example, my user visits screen A then B then...
2
1075
by: PeteSmith | last post by:
I have an application with 2 vb.net forms and an Excel Spreadsheet. I am struggking to get the navigation betwee the forms to work properly On startup frmMain is loaded. This frm has a button to open XL and direct user to correct area of ssheet. It opens a secon vb.net frm (frmNav) to assist navigation through the spready. On initial loading of the spreadsheet this all works OK BUT when closing frmNav, I want the user to be taken back to...
3
3527
by: Per Dunberg | last post by:
Hi all, I have to develop a "skinned" application and I have a problem with the graphics. When a form is loaded and displayed there's aways a flicker where all the controls are located on the form. It seems like the controls erase the background and this cause a flicker everytime a form i loaded. When I hide and show forms that are already loaded there's no flicker, it's just when the form is loaded the first time.
10
10039
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to believe that this has to do with unreleased form component events or event handlers. I'm comparatively new to .net and windows forms, in the sense that though I've been using them for over 2 years now, it's been rather sporadic. I work with...
6
2391
by: A.Weinman | last post by:
Hello all, I have an application that has multiple forms, only 3 of which matter for this issue. There is a main form that starts invisible and does nothing more than start other forms and link them all together. I also have a Login form and a View form, both started by the main form. My goal is to have the Login form pop up as soon as the application is started, and at the same time have the View form start loading data, but stay...
3
1372
by: ollebollebagare | last post by:
For the last few days some of my web site users have been having problems posting asp.net forms. This problem arises everytime they try to post a form in asp.net, but never when the page is plain old asp. The different forms are on the same web site. None of the asp.net forms work, but all the asp forms work. There is no problem just loading an asp.net page, it's just when posting the page the errors occurs. When the user tries to post...
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.