Re: Problem freeing components with .free



On Thu, 15 Feb 2007 17:13:51 +0100, Hans-Peter Diettrich
<DrDiettrich1@xxxxxxx> wrote:

J French wrote:

IMO this should work for you, instead of X.Free:
X.Owner.RemoveComponent(X);


That looks interesting, but according to the Help it is a mechanism
for changing the Owner of a component and meant to be used in
conjunction with InsertComponent.

IMO you confuse RemoveControl and RemoveComponent - the names really
could have been choosen more carefully :-(

I see what you mean, the Help on RemoveControl looks as if it just
de-parents it.

.