System.Windows.Forms.PictureBox.ImageLocation Property

Gets or sets the path or URL for the image to display in the System.Windows.Forms.PictureBox.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.All)]
[System.ComponentModel.DefaultValue(null)]
[System.ComponentModel.Localizable(true)]
public string ImageLocation { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If a relative path is used, it will be considered relative to the working directory.

A call to the PictureBox.Load(string) method will overwrite the PictureBox.ImageLocation property, setting PictureBox.ImageLocation to the URL value specified in the method call.

Requirements

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