Posted on 2002-03-24
How can I create objects (say buttons) at runtime? Normally, we create buttons by this syntax:
But now I want the buttons to be created only when the user requests, and the names of the buttons are specified by the user, say through Edit1.Text
1. How can I create a button with the name given by the user?
2. Later, the user will give another name in Edit2.Text, how can I search whether there is a button with the name matched with Edit2.Text? If that button exists, how can I delete it?