System.Windows.Forms.PictureBox Members

The members of System.Windows.Forms.PictureBox are listed below.

See Also: Inherited members from System.Windows.Forms.Control

Public Constructors

Initializes a new instance of the System.Windows.Forms.PictureBox class.

Public Properties

override
AllowDropbool.

Overrides the Control.AllowDrop property.

BorderStyleBorderStyle.

Indicates the border style for the control.

CausesValidationbool.

Overrides the Control.CausesValidation property.

ErrorImageSystem.Drawing.Image.

Gets or sets the image to display when an error occurs during the image-loading process or if the image load is canceled.

override
FontSystem.Drawing.Font.

Gets or sets the font of the text displayed by the control.

override
ForeColorSystem.Drawing.Color.

Overrides the Control.ForeColor property.

ImageSystem.Drawing.Image.

Gets or sets the image that is displayed by System.Windows.Forms.PictureBox.

ImageLocationstring.

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

ImeModeImeMode.

Gets or sets the Input Method Editor(IME) mode supported by this control.

InitialImageSystem.Drawing.Image.

Gets or sets the image displayed in the System.Windows.Forms.PictureBox control when the main image is loading.

override
RightToLeftRightToLeft.

Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left languages.

SizeModePictureBoxSizeMode.

Indicates how the image is displayed.

TabIndexint.

Gets or sets the tab index value.

TabStopbool.

Gets or sets a value that indicates whether the user can give the focus to this control by using the TAB key.

override
Textstring.

Gets or sets the text of the System.Windows.Forms.PictureBox.

WaitOnLoadbool.

Gets or sets a value indicating whether an image is loaded synchronously.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Overrides the Control.CreateParams property.

[read-only]
override
DefaultImeModeImeMode.

Gets a value indicating the mode for Input Method Editor (IME) for the System.Windows.Forms.PictureBox.

[read-only]
override
DefaultSizeSystem.Drawing.Size. Documentation for this section has not yet been entered.

Public Methods

CancelAsync()

Cancels an asynchronous image load.

Load()

Displays the image specified by the PictureBox.ImageLocation property of the System.Windows.Forms.PictureBox.

Load(string)

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

LoadAsync()

Loads the image asynchronously.

LoadAsync(string)

Loads the image at the specified location, asynchronously.

override
ToString() : string

Returns a string that represents the current System.Windows.Forms.PictureBox control.

Protected Methods

override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.PictureBox and optionally releases the managed resources.

override
OnEnabledChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnHandleCreated(EventArgs)

Raises the Control.HandleCreated event.

override
OnHandleDestroyed(EventArgs)

Raises the Control.HandleDestroyed event.

OnLoadCompleted(System.ComponentModel.AsyncCompletedEventArgs)

Raises the PictureBox.LoadCompleted event.

OnLoadProgressChanged(System.ComponentModel.ProgressChangedEventArgs)

Raises the PictureBox.LoadProgressChanged event.

override
OnPaint(PaintEventArgs)

Raises the Control.Paint event.

override
OnParentChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnResize(EventArgs)

Raises the Control.Resize event.

OnSizeModeChanged(EventArgs)

Raises the PictureBox.SizeModeChanged event.

override
OnVisibleChanged(EventArgs)
Documentation for this section has not yet been entered.
override
SetBoundsCore(int, int, int, int, BoundsSpecified)
Documentation for this section has not yet been entered.

Public Events

CausesValidationChanged

Overrides the Control.CausesValidationChanged property.

Enter

Overrides the Control.Enter property.

FontChanged

Occurs when the value of the PictureBox.Font property changes.

ForeColorChanged

Occurs when the value of the PictureBox.ForeColor property changes.

ImeModeChanged

Occurs when the value of the PictureBox.ImeMode property changes.

KeyDown

Occurs when a key is pressed when the control has focus.

KeyPress

Occurs when a key is pressed when the control has focus.

KeyUp

Occurs when a key is released when the control has focus.

Leave

Occurs when input focus leaves the System.Windows.Forms.PictureBox.

LoadCompleted

Occurs when the asynchronous image-load operation is completed, been canceled, or raised an exception.

LoadProgressChanged

Occurs when the progress of an asynchronous image-loading operation has changed.

RightToLeftChanged

Occurs when the value of the PictureBox.RightToLeft property changes.

SizeModeChanged

Occurs when PictureBox.SizeMode changes.

TabIndexChanged

Occurs when the value of the PictureBox.TabIndex property changes.

TabStopChanged

Occurs when the value of the PictureBox.TabStop property changes.

TextChanged

Occurs when the value of the PictureBox.Text property changes.

Explicitly Implemented Interface Members

System.ComponentModel.ISupportInitialize.BeginInit

Signals the object that initialization is starting.

System.ComponentModel.ISupportInitialize.EndInit

Signals to the object that initialization is complete.