title: How to add image to bitmap of ListView in RAD studio
body: <p>I took one ListView. I have change the itemAppearance to DynamicAppearance.
  This listview contains one bitmap as member. Now I want to populate the list by C++ code. There are 2 members in listview Text &amp; Image(MyImage). I am able to assign the value to Text by C++ and now i am trying to assign the images to bitmap image of listview. but i am unable to assign the image to listview.
  Below is the code i have written:</p>
  
  <pre><code> __fastcall TForm1::TForm1(TComponent* Owner)
  : TForm(Owner)
  </code></pre>
  
  <p>{</p>
  
  <p>ListView1->BeginUpdate();</p>
  
  <pre><code>try{
  for(int i = 0; i&lt;=10; i++)
  {
      TListViewItem* item = ListView1-&gt;Items-&gt;Add();
      TListItemText *Txt = (TListItemText*)item-&gt;Objects-&gt;FindObject("Text1");
      Txt-&gt;Text = "Sarthak Mirajkar";
      TListItemImage* img = (TListItemImage*)item-&gt;Objects-&gt;FindObject("MyImage");
  
      img-&gt;Bitmap-&gt;LoadFromFile("Images\\123.bmp");
  
  }
  }
  catch(...)
  {}
  
  ListView1-&gt;EndUpdate();
  </code></pre>
  
  <p>}</p>
  
  <p>This code does not give compiler error but its not working.
  I have tried to gave the path many ways in the statement img->Bitmap->LoadFromFile("Images\123.bmp"); but nothing works.
  Please help me to solve this issue. </p>
  
  <p>Thanks in advance.</p>