Board index » delphi » How to retrieve a form icon?

How to retrieve a form icon?

Hello,

my question is simple :

Put a TImage on a form. Now how do you display the Form's Icon in this
TImage?

The following doesn't work : image1.Picture.Icon.Assign(icon);

Any idea?

Thank-you,

vsch...@polylog.ch

 

Re:How to retrieve a form icon?


Vincent,

   This does work for me in Delphi 3 and 4...
   Image1.picture.icon.assign(form1.icon)

--
Good Luck!!
    Dave
    http://www.erols.com/dparsons

Vincent Schmid <vsch...@polylog.ch> wrote in article
<35BC83E2.8D033...@polylog.ch>...

Quote
> Hello,

> my question is simple :

> Put a TImage on a form. Now how do you display the Form's Icon in this
> TImage?

> The following doesn't work : image1.Picture.Icon.Assign(icon);

> Any idea?

> Thank-you,

> vsch...@polylog.ch

Other Threads