# C1.Win.C1Input.C1PictureBox

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Input_C1PictureBox" data-uid="C1.Win.C1Input.C1PictureBox" class="text-break">C1PictureBox Class
</h1>
  <div class="markdown level0 summary"><p>Represents a Windows PictureBox control supporting data binding to data source fields containing image data.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.picturebox">PictureBox</a></div>
    <div class="level5"><span class="xref">C1PictureBox</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.idroptarget">IDropTarget</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isynchronizeinvoke">ISynchronizeInvoke</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.iwin32window">IWin32Window</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.ibindablecomponent">IBindableComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icustomtypedescriptor">ICustomTypeDescriptor</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Input.html">C1.Win.C1Input</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Win_C1Input_C1PictureBox_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(C1PictureBox), &quot;C1PictureBox.png&quot;)]
public class C1PictureBox : PictureBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize, ICustomTypeDescriptor</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(C1PictureBox), &quot;C1PictureBox.png&quot;)&gt;
Public Class C1PictureBox
    Inherits PictureBox
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize, ICustomTypeDescriptor</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox__ctor" data-uid="C1.Win.C1Input.C1PictureBox.#ctor">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.-ctor.html#C1_Win_C1Input_C1PictureBox__ctor">C1PictureBox()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the C1PictureBox class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_DataField" data-uid="C1.Win.C1Input.C1PictureBox.DataField">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.DataField.html#C1_Win_C1Input_C1PictureBox_DataField">DataField</a>
        </td>
        <td class="markdown level1 summary"><p>The field of the data source object to which the control is bound.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_DataSource" data-uid="C1.Win.C1Input.C1PictureBox.DataSource">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.DataSource.html#C1_Win_C1Input_C1PictureBox_DataSource">DataSource</a>
        </td>
        <td class="markdown level1 summary"><p>The data source object to which the control is bound.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_FocusOnClick" data-uid="C1.Win.C1Input.C1PictureBox.FocusOnClick">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.FocusOnClick.html#C1_Win_C1Input_C1PictureBox_FocusOnClick">FocusOnClick</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value indicating whether the picture box receives focus when clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_Image" data-uid="C1.Win.C1Input.C1PictureBox.Image">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.Image.html#C1_Win_C1Input_C1PictureBox_Image">Image</a>
        </td>
        <td class="markdown level1 summary"><p>The image displayed in the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_ImmediateUpdate" data-uid="C1.Win.C1Input.C1PictureBox.ImmediateUpdate">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.ImmediateUpdate.html#C1_Win_C1Input_C1PictureBox_ImmediateUpdate">ImmediateUpdate</a>
        </td>
        <td class="markdown level1 summary"><p>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.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_CopyImage" data-uid="C1.Win.C1Input.C1PictureBox.CopyImage">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.CopyImage.html#C1_Win_C1Input_C1PictureBox_CopyImage">CopyImage()</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the image currently in the control to the clipboard.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_Dispose_System_Boolean_" data-uid="C1.Win.C1Input.C1PictureBox.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.Dispose.html#C1_Win_C1Input_C1PictureBox_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases the resources used by the C1PictureBox.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_ImageFromByteArray_System_Byte___" data-uid="C1.Win.C1Input.C1PictureBox.ImageFromByteArray(System.Byte[])">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.ImageFromByteArray.html#C1_Win_C1Input_C1PictureBox_ImageFromByteArray_System_Byte___">ImageFromByteArray(byte[])</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a byte array to an image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_ImageToByteArray_System_Drawing_Image_System_Drawing_Imaging_ImageFormat_" data-uid="C1.Win.C1Input.C1PictureBox.ImageToByteArray(System.Drawing.Image,System.Drawing.Imaging.ImageFormat)">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.ImageToByteArray.html#C1_Win_C1Input_C1PictureBox_ImageToByteArray_System_Drawing_Image_System_Drawing_Imaging_ImageFormat_">ImageToByteArray(Image, ImageFormat)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the contents of an image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_OnBindingFormatting_System_Windows_Forms_ConvertEventArgs_" data-uid="C1.Win.C1Input.C1PictureBox.OnBindingFormatting(System.Windows.Forms.ConvertEventArgs)">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.OnBindingFormatting.html#C1_Win_C1Input_C1PictureBox_OnBindingFormatting_System_Windows_Forms_ConvertEventArgs_">OnBindingFormatting(ConvertEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_OnBindingParsing_System_Windows_Forms_ConvertEventArgs_" data-uid="C1.Win.C1Input.C1PictureBox.OnBindingParsing(System.Windows.Forms.ConvertEventArgs)">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.OnBindingParsing.html#C1_Win_C1Input_C1PictureBox_OnBindingParsing_System_Windows_Forms_ConvertEventArgs_">OnBindingParsing(ConvertEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_OnGotFocus_System_EventArgs_" data-uid="C1.Win.C1Input.C1PictureBox.OnGotFocus(System.EventArgs)">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.OnGotFocus.html#C1_Win_C1Input_C1PictureBox_OnGotFocus_System_EventArgs_">OnGotFocus(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_OnImageChanged_System_EventArgs_" data-uid="C1.Win.C1Input.C1PictureBox.OnImageChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.OnImageChanged.html#C1_Win_C1Input_C1PictureBox_OnImageChanged_System_EventArgs_">OnImageChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_OnLostFocus_System_EventArgs_" data-uid="C1.Win.C1Input.C1PictureBox.OnLostFocus(System.EventArgs)">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.OnLostFocus.html#C1_Win_C1Input_C1PictureBox_OnLostFocus_System_EventArgs_">OnLostFocus(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_OnMouseDown_System_Windows_Forms_MouseEventArgs_" data-uid="C1.Win.C1Input.C1PictureBox.OnMouseDown(System.Windows.Forms.MouseEventArgs)">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.OnMouseDown.html#C1_Win_C1Input_C1PictureBox_OnMouseDown_System_Windows_Forms_MouseEventArgs_">OnMouseDown(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_PasteImage" data-uid="C1.Win.C1Input.C1PictureBox.PasteImage">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.PasteImage.html#C1_Win_C1Input_C1PictureBox_PasteImage">PasteImage()</a>
        </td>
        <td class="markdown level1 summary"><p>If the clipboard contains an image, this method replaces the contents of the Image property of the control</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_WndProc_System_Windows_Forms_Message__" data-uid="C1.Win.C1Input.C1PictureBox.WndProc(System.Windows.Forms.Message@)">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.WndProc.html#C1_Win_C1Input_C1PictureBox_WndProc_System_Windows_Forms_Message__">WndProc(ref Message)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_BindingFormatting" data-uid="C1.Win.C1Input.C1PictureBox.BindingFormatting">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.BindingFormatting.html">BindingFormatting</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when Image is retrieved from the data source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_BindingParsing" data-uid="C1.Win.C1Input.C1PictureBox.BindingParsing">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.BindingParsing.html">BindingParsing</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when Image is stored in the data source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1PictureBox_ImageChanged" data-uid="C1.Win.C1Input.C1PictureBox.ImageChanged">
          <a class="xref" href="C1.Win.C1Input.C1PictureBox.ImageChanged.html">ImageChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the Image changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
