ImageList created in Designer - where is the code?

Some time ago, I used a constructor to create ImageListfor ListView. Now I am looking for these images and the control code ImageList, but cannot find it. " Find All Links " does not display all of this (I thought it would be in InitializeComponent).

I can use the constructor to install ImageSize, but I cannot find it anywhere in the code. Not only that, but if I add it manually after the call InitializeComponent, the images will disappear at runtime.

I cannot find images anywhere in Solution Explorer .

To be clear, images are displayed at runtime.

+3
source share
1 answer

(ImageList, form Icon ..), (resx ).

InitializeComponent(), .

private void InitializeComponent()
{
    System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
    ...
    this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
    ...
    this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
    ...
 }
+3

All Articles