J
Jared
I've fought this problem on and off for quite a while now. My custom
..NET controls that exist in separate assemblies will *randomly*
disappear when I switch to the VS designer. VS doesn't always mark the
files as having been changed, so there's no way to undo. When this
happens, two important parts of the VS-generated code get wiped:
1) The code that adds the custom control to a container (hence the
disappearing act).
2) The code that links up event handlers. The handlers remains in
place, but they are no longer "hooked up" to the custom controls'
events.
I thought I had it licked by using file references instead of project
references. However, I just made a change to my control library,
rebuilt it, then opened a "consumer" project in the same instance of VS
(i.e. VS closed the control library project and opened the "consumer"
project). Voila, custom controls were gone, and I had no way of
recovering.
Because this is a somewhat complicated form with many instances of my
custom controls, it will take me a LONG time to redo my work. Worse,
this is very error prone, as it's easy to miss something. Worse YET is
that I have no guarantee it won't happen again.
-- start rant (feel free to ignore) --
IMHO, having your IDE eat your code and modify files on disk without
providing any means to recover is totally unacceptable. Also, "upgrade
to VS2005 for $$$" is not an acceptable solution, unless MS decides to
provide free upgrades.
-- end rant --
Does anyone have any tips for reliably avoiding this issue, short of
going back to Java programming in J-Builder? Please, please, don't
make me do that!
TIA
Jared
..NET controls that exist in separate assemblies will *randomly*
disappear when I switch to the VS designer. VS doesn't always mark the
files as having been changed, so there's no way to undo. When this
happens, two important parts of the VS-generated code get wiped:
1) The code that adds the custom control to a container (hence the
disappearing act).
2) The code that links up event handlers. The handlers remains in
place, but they are no longer "hooked up" to the custom controls'
events.
I thought I had it licked by using file references instead of project
references. However, I just made a change to my control library,
rebuilt it, then opened a "consumer" project in the same instance of VS
(i.e. VS closed the control library project and opened the "consumer"
project). Voila, custom controls were gone, and I had no way of
recovering.
Because this is a somewhat complicated form with many instances of my
custom controls, it will take me a LONG time to redo my work. Worse,
this is very error prone, as it's easy to miss something. Worse YET is
that I have no guarantee it won't happen again.
-- start rant (feel free to ignore) --
IMHO, having your IDE eat your code and modify files on disk without
providing any means to recover is totally unacceptable. Also, "upgrade
to VS2005 for $$$" is not an acceptable solution, unless MS decides to
provide free upgrades.
-- end rant --
Does anyone have any tips for reliably avoiding this issue, short of
going back to Java programming in J-Builder? Please, please, don't
make me do that!
TIA
Jared