controls not visible in design mode

G

Guest

ALL,

I recently had to reinstall Visual Studio .NET 2003. This was because I got
a new computer at my company, and in fact will need to reinstall a whole
bunch of apps. In any case, when I try to load the "design" view of my one
and only form (i.e. Form1.h[Design]) none of the controls are visible, and
there is an error message that says:

"An error occurred while loading the document. Fix the error, and then try
loading
the document again. The error message follows:

Unspecified error"

When I tried recompiling I got no error messages, but when I tried to run it
I got "exceptions" at the following 2 lines of code:

// this->odbcDataAdapter2->Fill(this->dataSet1);

// this->dgrDragonflyTDF->SetDataBinding(this->dataSet1,S"TDF");

After commenting out the above 2 lines, the form compiled and ran. In other
words, all of the controls were visible and seemed to behave as usual. In
short, the form and all of its controls are visible when the .exe in
executed, but not available at design time. I am guessing that there is
probably some DLL that I need to reinstall, but I cannot guess what it (they)
may be.


TIA

Bill Grigg
 
A

Atul

Are you using any 3rd party components. Make sure that the 'References' to
them are correct.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack For ActiveX & .Net - Windows Explorer Like Shell UI Controls
 
G

Guest

You were correct. I had somehow obtained a bunch of undefined references
which I deleted. I also deleted my references to Crystal Report Viewer.
Magically, the design time view of the form and its widgets reappeared.

Thanks,

Bill

Atul said:
Are you using any 3rd party components. Make sure that the 'References' to
them are correct.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack For ActiveX & .Net - Windows Explorer Like Shell UI Controls




Bill Grigg said:
ALL,

I recently had to reinstall Visual Studio .NET 2003. This was because I
got
a new computer at my company, and in fact will need to reinstall a whole
bunch of apps. In any case, when I try to load the "design" view of my one
and only form (i.e. Form1.h[Design]) none of the controls are visible, and
there is an error message that says:

"An error occurred while loading the document. Fix the error, and then try
loading
the document again. The error message follows:

Unspecified error"

When I tried recompiling I got no error messages, but when I tried to run
it
I got "exceptions" at the following 2 lines of code:

// this->odbcDataAdapter2->Fill(this->dataSet1);

// this->dgrDragonflyTDF->SetDataBinding(this->dataSet1,S"TDF");

After commenting out the above 2 lines, the form compiled and ran. In
other
words, all of the controls were visible and seemed to behave as usual. In
short, the form and all of its controls are visible when the .exe in
executed, but not available at design time. I am guessing that there is
probably some DLL that I need to reinstall, but I cannot guess what it
(they)
may be.


TIA

Bill Grigg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top