# C1.Win.C1Input.C1TextBox.AcceptsEscape

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Input_C1TextBox_AcceptsEscape_" data-uid="C1.Win.C1Input.C1TextBox.AcceptsEscape*">AcceptsEscape Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Input_C1TextBox_AcceptsEscape_" data-uid="C1.Win.C1Input.C1TextBox.AcceptsEscape*"></a>
<h4 id="C1_Win_C1Input_C1TextBox_AcceptsEscape" data-uid="C1.Win.C1Input.C1TextBox.AcceptsEscape">AcceptsEscape</h4>
<div class="markdown level1 summary"><p>Indicates if the Escape key that cancels modified value is handled by the control without passing it to the owner form (AcceptsEscape=True), or it is then passed to the form and can close it if the form has CancelButton (AcceptsEscape=False).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool AcceptsEscape { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property AcceptsEscape As Boolean</code></pre>
</div>
</div>
