[]
        
(Showing Draft Content)

C1.Win.Input.C1PictureBox

C1PictureBox Class

Represents a Windows PictureBox control supporting data binding to data source fields containing image data.

Namespace: C1.Win.Input
Assembly: C1.Win.Input.8.dll
Syntax
[DefaultBindingProperty("Image")]
[ToolboxBitmap(typeof(C1PictureBox), "C1PictureBox.png")]
public class C1PictureBox : PictureBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize, ICustomTypeDescriptor

Constructors

Name Description
C1PictureBox()

Initializes a new instance of the C1PictureBox class.

Properties

Name Description
DataMember

Gets or sets the member of the data source object to which the control is bound.

DataSource

Gets or sets the data source object to which the control is bound.

FocusOnClick

Gets or sets the value indicating whether the picture box receives focus when clicked.

Image

Gets or sets the image displayed in the control.

ImmediateUpdate

Gets or sets whether the image should be put into the data source right after the Image property has been changed or it shouldn't be put there until the following call of the CurrencyManager.EndCurrentEdit() method.

Methods

Name Description
CopyImage()

Copies the image currently in the control to the clipboard.

Dispose(bool)

Releases the resources used by the C1PictureBox.

ImageFromByteArray(byte[])

Converts a byte array to an image.

ImageToByteArray(Image, ImageFormat)

Returns the contents of an image.

OnBindingFormatting(ConvertEventArgs)

Raises the BindingFormatting event.

OnBindingParsing(ConvertEventArgs)

Raises the BindingParsing event.

OnGotFocus(EventArgs)

Raises the GotFocus event.

OnImageChanged(EventArgs)

Raises the ImageChanged event.

OnLostFocus(EventArgs)

Raises the LostFocus event.

OnMouseDown(MouseEventArgs)

Raises the MouseDown event.

PasteImage()

If the clipboard contains an image, this method replaces the contents of the Image property of the control

WndProc(ref Message)

Processes Windows messages.

Events

Name Description
BindingFormatting

Occurs when Image is retrieved from the data source.

BindingParsing

Occurs when Image is stored in the data source.

ImageChanged

Occurs when the Image property changes.