473,386 Members | 1,706 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,386 software developers and data experts.

Mysterious error with System.Windows.Forms

I reloaded a WinForms project in VStudio 2003 that has been working perfectly
fine for months. Suddenly I'm getting strange reference errors AND I can no
longer load any form in Designer view.

Yet when I start a new project, everything appears to be working fine.

What might have gone wrong and how do I resolve it?

--
Robert W.
Vancouver, BC
www.mwtech.com

Dec 9 '05 #1
4 1332
Your information on the problem is not complete but as guessing goes did you
move any controls that are used on the form or uninstalled something that
might have corrupted something.
"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:57**********************************@microsof t.com...
I reloaded a WinForms project in VStudio 2003 that has been working
perfectly
fine for months. Suddenly I'm getting strange reference errors AND I can
no
longer load any form in Designer view.

Yet when I start a new project, everything appears to be working fine.

What might have gone wrong and how do I resolve it?

--
Robert W.
Vancouver, BC
www.mwtech.com

Dec 9 '05 #2
Robert,
Are you using some custom project/3rd party Library in your
code. I think you are using function in the constructor of the form
which now u are un able to view in the designer, and that function is
not working properly now(May be a database connection).

Regards,
Naveed Ahmad Bajwa
http://bajoo.blogspot.com/

Dec 9 '05 #3
Another wild guess....

1. If you use devenv.exe to compile a silution form the command prompt it
somehow screwup the design time of all forms and controls. I don't know
what's wrong with it, but try to do some modification in the source code
(simple adding of a space somewhere just to make the fild *dirty* and save
it in order to refresh the file on the disk. The close all windows related
to the form or control (code view and designer view) and open them again. It
might help.

2. Make sure that the class declaration of form or control is the first type
decalred in the file. Other wise the designer won't show up. Move all such
decalrations after the form or control class.
--

Stoitcho Goutsev (100) [C# MVP]
"Bajoo" <Na**********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Robert,
Are you using some custom project/3rd party Library in your
code. I think you are using function in the constructor of the form
which now u are un able to view in the designer, and that function is
not working properly now(May be a database connection).

Regards,
Naveed Ahmad Bajwa
http://bajoo.blogspot.com/

Dec 9 '05 #4
Just wanted to thank all of you for your input to my dilemma. As is to be
expected, I suppose, this strange error popped up late last night. Troubling
it was! Before going to sleep I wrote out a 5-step Action plan for today,
that started with reviewing any feedback on this thread and ended with
reinstalling Windows!

Thankfully I was able to solve things with Step #2: Remove the current
project, create another [blank] one in its place and then add the project
files back in.

Everything seems to be working again ... though this was a scary experience!

Thank you all again!

--
Robert W.
Vancouver, BC
www.mwtech.com

"Stoitcho Goutsev (100) [C# MVP]" wrote:
Another wild guess....

1. If you use devenv.exe to compile a silution form the command prompt it
somehow screwup the design time of all forms and controls. I don't know
what's wrong with it, but try to do some modification in the source code
(simple adding of a space somewhere just to make the fild *dirty* and save
it in order to refresh the file on the disk. The close all windows related
to the form or control (code view and designer view) and open them again. It
might help.

2. Make sure that the class declaration of form or control is the first type
decalred in the file. Other wise the designer won't show up. Move all such
decalrations after the form or control class.
--

Stoitcho Goutsev (100) [C# MVP]
"Bajoo" <Na**********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Robert,
Are you using some custom project/3rd party Library in your
code. I think you are using function in the constructor of the form
which now u are un able to view in the designer, and that function is
not working properly now(May be a database connection).

Regards,
Naveed Ahmad Bajwa
http://bajoo.blogspot.com/


Dec 9 '05 #5

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

Similar topics

6
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
13
by: Max | last post by:
Hi There! I'm having a mysterious error right after I login using Forms Authentication in my ASP.NET app. Below is the error... Exception Details: System.NullReferenceException: Object...
2
by: Jeff | last post by:
I'm getting an Object Reference error before I even run my app, and I'm not sure where to look to find the cause. I'd appreciate your help. When I open my Windows Application project, the...
8
by: jcrouse | last post by:
I am using the following code to trap errors in a sub routine: Try Executable code Catch ex As Exception Dim strInputE As String = Application.StartupPath & "\Error.txt" Dim srE As...
3
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an...
1
by: Mikey G | last post by:
Hi, I created a simple VB.NET 2003 application through Visual Studio that connects to a MySQL database and loads a table into a Dataset, and then displays that table information in a DataGrid on a...
0
by: Nonee | last post by:
Hello- I have a form with the mediaplayer referenced to play mp3's and avi's and I believe that is what is causing the problem. I am not sure, but I am hoping. Anyway, I "published" the vb.net...
2
by: scarleton | last post by:
A coworker and I have spent the last day and a half trying to track down this bug in our code. We found the solution and thought we might post it to help others out... The setup: Class...
11
by: xenoix | last post by:
hey there, im reasonably new to C# and im currently writing a backup application which im using as a learning resource. My PC :- Visual Studio 2005 .NET Framework 2 Component Factory Krypton...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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...

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.