1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | /* * Created by SharpDevelop. * User: wai * Date: 2/9/2012 * Time: 21:09 * * To change this template use Tools | Options | Coding | Edit Standard Headers. / */ using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace PictureBox_Test { /// <summary> /// Description of MainForm. /// </summary> public partial class MainForm : Form { public MainForm() { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); this.Size = new Size(400,300); PictureBox imageControl = new PictureBox(); imageControl.ImageLocation = "http://blog-imgs-31-origin.fc2.com/h/a/n/hanmans/pachinkotokyo18.jpg"; imageControl.Width = 400; imageControl.Height = 300; this.Controls.Add(imageControl); } } } |
Monday, September 3, 2012
PictureBox load image from url (C#)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment