Resource file

  • Thread starter Thread starter Zürcher See
  • Start date Start date
Z

Zürcher See

I have a form with about 10 data adapter, 3 connections, one dataset and
other components on it,
sometimes it goes crazy and all the inherits form tries to initialize all
the components again, like setting
again the dataset primary key, that will throw an error, all the dataapater
command become visible,
and others errors ...

What's wrong with the resource file? There is a way to fix it?
 
hi,
first of all you we need to see which exception that you are getting.
unfortunatly you didn't mention that. Anyhow check your project properties
and make sure the output type.

I think you are trying to add a form or class file which is enterly
developed in another project or application.

Or You renamed the application after building.

please feel free to ask more...
 
Sorry, the problem in with visual studio, I create a "base" form and begin
to implement it with some code and drag and drop objects (dataadapter,
dataset, controls ..),
than I create some inherit form from my "base" form, and evrything is ok,
the Initialize method is empty, in the "designer" all the draged and droped
objects of the "base" form are ok, the resource file of the inherit form is
also empty.
Some time later, after have changed more times the "base" form and the
ineherit form, the rerource file (I think is it) of the "base" form get
bugged, all the inherit forms shows all the objects like dbcommand of the
dataadapter, the "AI" of visula studio build a new Initiliaze method in the
inherit forms that's is anymore empty but tries to reinitialize all the
objects, like dataset primary keys, and that throw errors by compiling it.
The only solution that I have found to fix it, is to clear myself the
Initialize method of the inherit forms.

What's wrong with the "base" form, what's wrong with the resource file?
 
Back
Top