error wiped controls from the form; how to get them back

  • Thread starter Thread starter Dee
  • Start date Start date
D

Dee

Hi

I changed the name of a DataSet using VisualStudio and the were build errors
as i hadn't changed the name in the code yet. My form lost all the controls
that
where bound to the DataSet with changed name. These properties still appear
in the Properties window but are not on the form!!
How can I get them back?
Thanks. Dee
 
Dee,

You probably did it in the designer generated code. What can be done often
however seldom with parts of system.data (the RESX file is not done when you
do it in code).

When it is as I suppose above, you can look in that designer generated code
what is wrong with your properties, delete your system.data components or
just start new when you have not made to much yet. That was what I mostly
did when I came in this kind of situation. After making a backup of course.

Just my thought,

Cor
 
I deleted the enteries for the "lost" controls from .resx file but the
Properties window
still shows thinks they exist. I dont see any files where they are defined.
 
Dee,

A very easy way to do those things I did in past is,

Create a new form,
delete all the code from that.
Copy the from the old one *all* the code and paste this in the new (and
change the class name from the old one when you get that error).

Cor
 
Back
Top