How do I replace a component type that is on my form from TVirtualStringTree to TMyVirtualStringTree without damaging anything?

I have about 4 VirtualStringTrees that are of class TVirtualStringTree
and now I have a new component MyVirtualStringTree of type TMyVirtualStringTree which is inherited and slightly modified.

How can I change the components of all the existing ones from class TVirtualStringTree to take on the new class TMyVirtualStringTree without damaging the DFM file or destroying the app.

I use Delphi 2007 for win32

Who is Participating?
Replace all "TVirtualStringTree" with "TMyVirtualStringTree" in both DFM and PAS file
MerijnBSr. Software EngineerCommented:
make sure you close Delphi before doing this!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.