The TPictureBox type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| TPictureBox |
Default constructor.
|
Methods
| Name | Description | |
|---|---|---|
| BeginInvoke | Overloaded. | |
| BringToFront |
Brings the control to the front of the z-order.
(Inherited from Control.) | |
| CreateControlsInstance |
Creates a new instance of the control collection for the control.
(Inherited from Control.) | |
| CreateGraphics |
Creates the Graphics for the control.
(Inherited from Control.) | |
| CreateObjRef |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.) | |
| Dispose | Overloaded. | |
| DrawIconCF |
Draw icon on Compact Framework.
(Inherited from TButtonBase.) | |
| DrawIconDesktop |
Draw icon on desktop.
(Inherited from TButtonBase.) | |
| DrawIconStaticCF |
Draw static icon on Compact Framework.
(Inherited from TButtonBase.) | |
| EndInvoke |
Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed.
(Inherited from Control.) | |
| Equals | (Inherited from Object.) | |
| Finalize |
Destructor.
(Inherited from TButtonBase.) | |
| Focus |
Sets input focus to the control.
(Inherited from Control.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetLifetimeService |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| GetScaledBounds |
Retrieves the bounds within which the control is scaled.
(Inherited from Control.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Hide |
Conceals the control from the user.
(Inherited from Control.) | |
| InitializeLifetimeService |
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| Invalidate | Overloaded. | |
| Invoke | Overloaded. | |
| LoadImageFromArray |
Loads an image from a byte array.
| |
| LoadImageResxFromAssembly | Overloaded. | |
| MemberwiseClone | Overloaded. | |
| MyDispose |
Disposes managed objects.
(Inherited from TButtonBase.) | |
| OnBindingContextChanged |
Raises the BindingContextChanged event.
(Inherited from Control.) | |
| OnClick |
Raises the Click event.
(Inherited from Control.) | |
| OnDoubleClick |
Raises the DoubleClick event.
(Inherited from Control.) | |
| OnEnabledChanged |
Raises the EnabledChanged event.
(Inherited from Control.) | |
| OnGotFocus |
Raises the GotFocus event.
(Inherited from Control.) | |
| OnHandleCreated |
Raises the HandleCreated event.
(Inherited from Control.) | |
| OnHandleDestroyed |
Raises the HandleDestroyed event.
(Inherited from Control.) | |
| OnHelpRequested |
Raises the HelpRequested event.
(Inherited from Control.) | |
| OnKeyDown |
Raises the KeyDown event.
(Inherited from Control.) | |
| OnKeyPress |
Raises the KeyPress event.
(Inherited from Control.) | |
| OnKeyUp |
Raises the KeyUp event.
(Inherited from Control.) | |
| OnLostFocus |
Raises the LostFocus event.
(Inherited from Control.) | |
| OnMouseDown |
Raises the System.Windows.Forms.Control.MouseDown event.
(Overrides Control..::.OnMouseDown(MouseEventArgs).) | |
| OnMouseMove |
Raises the System.Windows.Forms.Control.MouseMove event.
(Overrides Control..::.OnMouseMove(MouseEventArgs).) | |
| OnMouseUp |
Raises the System.Windows.Forms.Control.MouseUp event.
(Overrides Control..::.OnMouseUp(MouseEventArgs).) | |
| OnPaint |
Raises the System.Windows.Forms.Control.Paint event.
(Inherited from TButtonBase.) | |
| OnPaintBackground |
Paints the background of the control.
(Inherited from TButtonBase.) | |
| OnPainted |
Raises when the control is painted.
(Inherited from TButtonBase.) | |
| OnParentChanged |
Raises the ParentChanged event.
(Inherited from Control.) | |
| OnResize |
Raises the System.Windows.Forms.Control.Resize event.
(Inherited from TButtonBase.) | |
| OnTextChanged |
Raises the TextChanged event.
(Inherited from Control.) | |
| PerformAutoScale |
Performs scaling of the container control and its children.
(Inherited from ContainerControl.) | |
| PlaySound | Overloaded. | |
| PointToClient |
Computes the location of the specified screen point into client coordinates.
(Inherited from Control.) | |
| PointToScreen |
Computes the location of the specified client point into screen coordinates.
(Inherited from Control.) | |
| RectangleToClient |
Computes the size and location of the specified screen rectangle in client coordinates.
(Inherited from Control.) | |
| RectangleToScreen |
Computes the size and location of the specified client rectangle in screen coordinates.
(Inherited from Control.) | |
| Refresh |
Forces the control to invalidate its client area and immediately redraw
itself and any child controls.
(Inherited from TButtonBase.) | |
| ResetImageAlignment |
Sets the ImageAlignment property to its default value.
| |
| ResetTextAlignHorizontal |
Sets the TextAlignHorizontal property to its default value.
(Inherited from TButtonBase.) | |
| ResetTextAlignVertical |
Sets the TextAlignVertical property to its default value.
(Inherited from TButtonBase.) | |
| ResumeLayout | Overloaded. | |
| Scale |
Scales the control and all child controls by the specified scaling factor.
(Inherited from Control.) | |
| ScaleControl |
Scales control.
(Inherited from TButtonBase.) | |
| SelectNextControl |
Activates the next control.
(Inherited from Control.) | |
| SendToBack |
Sends the control to the back of the z-order.
(Inherited from Control.) | |
| ShouldSerializeAutoScale |
Indicates whether the AutoScale property should be persisted.
(Inherited from TButtonBase.) | |
| ShouldSerializeImageAlignment |
Indicates whether the ImageAlignment property should be persisted.
| |
| ShouldSerializeImageFile |
Indicates whether the ImageFile property should be persisted.
| |
| ShouldSerializeImageInDesignTime |
Indicates whether the ImageInDesignTime property should be persisted.
| |
| ShouldSerializeImageInDesignTimeOnly |
Indicates whether the ImageInDesignTimeOnly property should be persisted.
| |
| ShouldSerializeImageResx |
Indicates whether the ImageResx property should be persisted.
| |
| ShouldSerializeRelativeImageFilePath |
Indicates whether the RelativeImageFilePath property should be persisted.
| |
| ShouldSerializeStretchImage |
Indicates whether the StretchImage property should be persisted.
(Inherited from TButtonBase.) | |
| ShouldSerializeText |
Indicates whether the Text property should be persisted.
(Inherited from TButtonBase.) | |
| ShouldSerializeTextAlignHorizontal |
Indicates whether the TextAlignHorizontal property should be persisted.
(Inherited from TButtonBase.) | |
| ShouldSerializeTextAlignVertical |
Indicates whether the TextAlignVertical property should be persisted.
(Inherited from TButtonBase.) | |
| ShouldSerializeTransparentImageResourceName |
Indicates whether the TransparentImageResourceName property should be persisted.
| |
| Show |
Displays the control to the user.
(Inherited from Control.) | |
| SuspendLayout |
Temporarily suspends the layout logic for the control.
(Inherited from Control.) | |
| ToString | (Inherited from Object.) | |
| Update |
Causes the control to redraw the invalidated regions within its client area.
(Inherited from Control.) | |
| Vibrate |
Vibrates device.
(Inherited from TButtonBase.) |
Properties
| Name | Description | |
|---|---|---|
| Anchor |
Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent.
(Inherited from Control.) | |
| AutoScale |
Enables or disables the auto-scaling.
(Inherited from TButtonBase.) | |
| AutoScaleDimensions |
Gets or sets the dimensions that the control was designed to.
(Inherited from ContainerControl.) | |
| AutoScaleFactor |
Gets the scaling factor between the current and design-time automatic scaling dimensions.
(Inherited from ContainerControl.) | |
| AutoScaleMode |
Gets or sets the automatic scaling mode of the control.
(Inherited from ContainerControl.) | |
| AutoScroll |
Gets or sets a value indicating whether the container enables the user to scroll to any controls placed outside of its visible boundaries.
(Inherited from ScrollableControl.) | |
| AutoScrollMargin |
Gets or sets the size of the auto-scroll margin.
(Inherited from ScrollableControl.) | |
| AutoScrollPosition |
Gets or sets the location of the auto-scroll position.
(Inherited from ScrollableControl.) | |
| AutoValidate |
Gets or sets a value that indicates whether controls in this container will be automatically validated when the focus changes.
(Inherited from ContainerControl.) | |
| BackColor |
Gets or sets the background color of the control.
(Inherited from TButtonBase.) | |
| BindingContext | (Inherited from ContainerControl.) | |
| BorderStyle |
Gets or sets the border style of the tree view control.
(Inherited from UserControl.) | |
| Bottom |
Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.
(Inherited from Control.) | |
| Bounds |
Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control.
(Inherited from Control.) | |
| Capture |
Gets or sets a value indicating whether the control has captured the mouse.
(Inherited from Control.) | |
| ClientRectangle |
Gets the rectangle that represents the client area of the control.
(Inherited from Control.) | |
| ClientSize |
Gets or sets the height and width of the client area of the control.
(Inherited from Control.) | |
| ContextMenu |
Gets or sets the shortcut menu associated with the control.
(Inherited from Control.) | |
| Controls |
Gets the collection of controls contained within the control.
(Inherited from Control.) | |
| CurrentAutoScaleDimensions |
Gets the current run-time dimensions of the screen.
(Inherited from ContainerControl.) | |
| DataBindings |
Gets the data bindings for the control.
(Inherited from Control.) | |
| Dock |
Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.
(Inherited from Control.) | |
| Enabled |
Gets or sets a value indicating whether the control can respond to user interaction.
(Inherited from Control.) | |
| Events |
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.) | |
| Focused |
Gets a value indicating whether the control has input focus.
(Inherited from Control.) | |
| Font |
Gets or sets the font of the text displayed by the control.
(Inherited from Control.) | |
| ForeColor |
Gets or sets the foreground color of the control.
(Inherited from TButtonBase.) | |
| Handle |
Gets the window handle that the control is bound to.
(Inherited from Control.) | |
| Height |
Gets or sets the height of the control.
(Inherited from Control.) | |
| ImageAlignment |
Gets or sets the image's position.
| |
| ImageFile |
Sets the current image to a file, specified by a path relative to the currently executing assembly's codebase (build output directory).
| |
| ImageInDesignTime |
Gets or sets the Image that will display only in design time.
| |
| ImageInDesignTimeOnly |
Gets or sets the Image that will display only in design time.
| |
| ImageResx |
Sets the current image to a resource stored in the currently executing assembly.
The string is the resource name that is used to identify the image in the resource manifest.
| |
| InvokeRequired |
Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on.
(Inherited from Control.) | |
| IsDesignMode |
Specifies whether we are in design mode or in run-time.
(Inherited from TButtonBase.) | |
| IsDisposed |
Gets a value indicating whether the control has been disposed of.
(Inherited from Control.) | |
| Left |
Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.
(Inherited from Control.) | |
| LoadedImageSize |
Gets the loaded Image's size.
| |
| Location |
Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.
(Inherited from Control.) | |
| Name |
Gets or sets the name of the control.
(Inherited from Control.) | |
| Parent |
Gets or sets the parent container of the control.
(Inherited from Control.) | |
| RelativeImageFilePath | Obsolete.
Sets the current image to a file, specified by a path relative to the currently executing assembly's codebase (build output directory).
| |
| Right |
Gets the distance, in pixels, between the right edge of the control and the left edge of its container's client area.
(Inherited from Control.) | |
| ScaleChildren |
Gets a value that determines the scaling of child controls.
(Inherited from Control.) | |
| Site | (Inherited from Component.) | |
| Size |
Gets or sets the height and width of the control.
(Inherited from Control.) | |
| StretchImage |
Enables or disables stretching image.
(Inherited from TButtonBase.) | |
| TabIndex |
Gets or sets the tab order of the control within its container.
(Inherited from Control.) | |
| TabStop |
Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.
(Inherited from Control.) | |
| Tag |
Gets or sets the object that contains data about the control.
(Inherited from Control.) | |
| Text |
Gets or sets the text associated with this control.
(Inherited from TButtonBase.) | |
| TextAlignHorizontal |
Gets or sets text alignment on the horizontal plane.
(Inherited from TButtonBase.) | |
| TextAlignVertical |
Gets or sets text alignment on the vertical plane.
(Inherited from TButtonBase.) | |
| TextMarginBottom |
Specifies the bottom margin.
(Inherited from TButtonBase.) | |
| TextMarginLeft |
Specifies the left margin.
(Inherited from TButtonBase.) | |
| TextMarginRight |
Specifies the right margin.
(Inherited from TButtonBase.) | |
| TextMarginTop |
Specifies the top margin.
(Inherited from TButtonBase.) | |
| Top |
Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area.
(Inherited from Control.) | |
| TopLevelControl |
Gets the parent control that is not parented by another Windows Forms control. Typically, this is the outermost Form that the control is contained in.
(Inherited from Control.) | |
| TransparentImageResourceName | Obsolete.
Sets the current image to a resource stored in the currently executing assembly.
The string is the resource name that is used to identify the image in the resource manifest.
| |
| Visible |
Gets or sets a value indicating whether the control and all its parent controls are displayed.
(Inherited from Control.) | |
| Width |
Gets or sets the width of the control.
(Inherited from Control.) |
Events
| Name | Description | |
|---|---|---|
| Click |
Occurs when the control is clicked.
(Inherited from Control.) | |
| Disposed |
Occurs when the component is disposed by a call to the Dispose()()() method.
(Inherited from Component.) | |
| DoubleClick |
Occurs when the control is double-clicked.
(Inherited from Control.) | |
| EnabledChanged |
Occurs when the Enabled property value has changed.
(Inherited from Control.) | |
| GotFocus |
Occurs when the control receives focus.
(Inherited from Control.) | |
| HandleCreated |
Occurs when a handle is created for the control.
(Inherited from Control.) | |
| HandleDestroyed |
Occurs when the control's handle is in the process of being destroyed.
(Inherited from Control.) | |
| HelpRequested |
Occurs when the user requests help for a control.
(Inherited from Control.) | |
| KeyDown |
Occurs when a key is pressed while the control has focus.
(Inherited from Control.) | |
| KeyPress |
Occurs when a key is pressed while the control has focus.
(Inherited from Control.) | |
| KeyUp |
Occurs when a key is released while the control has focus.
(Inherited from Control.) | |
| LostFocus |
Occurs when the control loses focus.
(Inherited from Control.) | |
| MouseDown |
Occurs when the mouse pointer is over the control and a mouse button is pressed.
(Inherited from Control.) | |
| MouseMove |
Occurs when the mouse pointer is moved over the control.
(Inherited from Control.) | |
| MouseUp |
Occurs when the mouse pointer is over the control and a mouse button is released.
(Inherited from Control.) | |
| Paint |
Occurs when the control is redrawn.
(Inherited from Control.) | |
| Painted |
Raises when the control is painted.
(Inherited from TButtonBase.) | |
| ParentChanged |
Occurs when the Parent property value changes.
(Inherited from Control.) | |
| Resize |
Occurs when the control is resized.
(Inherited from Control.) | |
| TextChanged |
Occurs when the Text property value changes.
(Inherited from Control.) | |
| Validated |
Occurs when the control is finished validating.
(Inherited from Control.) | |
| Validating |
Occurs when the control is validating.
(Inherited from Control.) |