.NET Destroy user code!!!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a windows datagrid with a style and some fields... for one field I have declared one event and it works fine, the problem is when I need to check or change others datagrid or the one,... .NET overwrite my code and I loose it!
I wrote the event of the datagrid field a lot of times today, because he destroy it!!! :-)
There is any wayt o prevent .NET to change user code??
Wy .NET 2002 have so many bugs!!!

Thanks
 
Bernardo said:
Hi,

I have a windows datagrid with a style and some fields... for one field I
have declared one event and it works fine, the problem is when I need to
check or change others datagrid or the one,... .NET overwrite my code and
I loose it!
I wrote the event of the datagrid field a lot of times today, because he
destroy it!!! :-)
There is any wayt o prevent .NET to change user code??
Wy .NET 2002 have so many bugs!!!

Are you modifying the InitalizeComponent() method? You should be writing
your modifications after the call to InitalizeComponent, either in your
constructor or the load event(sadly, I can't even remember off a hand where
it is). All code in InitalizeComponent() can and will be changed by the IDE,
which is why there is a warning region around it.
 
Back
Top