Picturebox auto size failed.

  • Thread starter Thread starter Boki
  • Start date Start date
B

Boki

Hi All,

I use a picturebox to show image form URL string.

When auto size propertise disable, it works well, but fail whenever
auto size is enable.


pictureBox1.Image = new System.Drawing.Bitmap(new
System.IO.MemoryStream(new
System.Net.WebClient().DownloadData(picStr)));

picStr is string with picture's URL.

Best regards,
Boki.
 
Boki,

What exactly fails? Does it not work as expected, or is there an
exception?
 
Back
Top