title: vb.net assign image to picturebox through panel controls
body: <p>I'm writing a program of a card game in VB.NET. 
  I have encountered a problem. Computer_Flow is declared like System.Windows.Forms.Panel manualy on design window. I have created a picture box like this programmaticly:  </p>
  
  <pre><code>Dim P As PictureBox = New PictureBox  
  P.Size = New Point(Cards_Width, Cards_Height)  
  P.SizeMode = PictureBoxSizeMode.StretchImage  
  P.Image = Image.FromFile(Images_Folder_Path &amp; "Back.png")   
  P.Tag = Deck(DI)    
  P.Margin = New Padding(1)  
  Computers_Hand(DI) = Deck(DI)  
  Computer_Flow.Controls.Add(P)
  </code></pre>
  
  <p>Later on I want to change that PictureBox image. I'm trying to change it like that:  </p>
  
  <pre><code>Computer_Flow.Controls(i).image = Image.FromFile(Images_Folder_Path &amp; "Back.png")  
  </code></pre>
  
  <p>But I get an error which says: 'image' is not a member of System.Windows.Forms.Control'.    </p>
  
  <p>Who can help me to solve this problem? </p>
  
  <p>Thanks!</p>