TVirtualImageList and Form Inheritance in Delphi Rio

Viewed 249
  • I placed TImageCollection on TDataModule and TVirtualImageList on Form1.
  • Added a couple Images to TImageCollection and linked TVirtualImageList to TImageCollection. All is working perfect.
  • Add Form2 that descends from Form1.
  • When trying to save new Form2 I get this message: “Cannot assign a TVirtualImageListItem to a TVirtualImageListItem”.
1 Answers

Just double click the TVirtualImageList on Form2, click Clear and OK.

Related