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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top