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

Posted on 2007-07-20
Last Modified: 2010-04-05
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

Question by:Alpha_AI
    LVL 10

    Accepted Solution

    Replace all "TVirtualStringTree" with "TMyVirtualStringTree" in both DFM and PAS file
    LVL 19

    Assisted Solution

    make sure you close Delphi before doing this!

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now