# C1.Framework.DrawUtil.DrawParentBackground

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_DrawUtil_DrawParentBackground_" data-uid="C1.Framework.DrawUtil.DrawParentBackground*">DrawParentBackground Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_DrawUtil_DrawParentBackground_" data-uid="C1.Framework.DrawUtil.DrawParentBackground*"></a>
<h4 id="C1_Framework_DrawUtil_DrawParentBackground_System_Windows_Forms_Control_System_Drawing_Graphics_" data-uid="C1.Framework.DrawUtil.DrawParentBackground(System.Windows.Forms.Control,System.Drawing.Graphics)">DrawParentBackground(Control, Graphics)</h4>
<div class="markdown level1 summary"><p>Draws the background of the control using the container background color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void DrawParentBackground(Control control, Graphics graphics)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub DrawParentBackground(control As Control, graphics As Graphics)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></td>
      <td><span class="parametername">control</span></td>
      <td><p>the control needs to draw a background.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">graphics</span></td>
      <td><p>the graphics context.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
