private void txtInvPic_TextChanged(object sender, EventArgs e) { if (Data.Graphics.ContainsKey(txtInvPic.Text.ToLower())) { Bitmap bmp = Data.Graphics[txtInvPic.Text.ToLower()]; pctInventory.Image = bmp; } else pctInventory.Image = null; }