System.Windows.Forms.PictureBox.Load Method

Sets the PictureBox.ImageLocation to the specified URL and displays the image indicated.

Syntax

public void Load (string url)

Parameters

url
The path for the image to display in the System.Windows.Forms.PictureBox.

Remarks

If the url parameter indicates a local file, the recommended format is a local file path. For example, an image file named myPicture.jpg located at c:\ would be accessed by passing c:\myPicture.jpg for the url parameter. A full path, such as http://www.contoso.com/path/images/image.jpg, or a relative path, such as ./images/image.jpg, can be used. If a relative path is used, it will be considered relative to the working directory. A call to the PictureBox.Load(string) method sets the PictureBox.ImageLocation property to the value of url.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0