473,698 Members | 2,403 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 1614
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
8680
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
9169
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
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...
1
8899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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
7738
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.