# C1.Win.SpellChecker.C1SpellChecker.SetActiveSpellChecking

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_SpellChecker_C1SpellChecker_SetActiveSpellChecking_" data-uid="C1.Win.SpellChecker.C1SpellChecker.SetActiveSpellChecking*">SetActiveSpellChecking Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_SpellChecker_C1SpellChecker_SetActiveSpellChecking_" data-uid="C1.Win.SpellChecker.C1SpellChecker.SetActiveSpellChecking*"></a>
<h4 id="C1_Win_SpellChecker_C1SpellChecker_SetActiveSpellChecking_System_Windows_Forms_TextBoxBase_System_Boolean_" data-uid="C1.Win.SpellChecker.C1SpellChecker.SetActiveSpellChecking(System.Windows.Forms.TextBoxBase,System.Boolean)">SetActiveSpellChecking(TextBoxBase, bool)</h4>
<div class="markdown level1 summary"><p>Sets whether the <a class="xref" href="C1.Win.SpellChecker.C1SpellChecker.html">C1SpellChecker</a> should highlight spelling mistakes
as the user types on a given <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.textboxbase">TextBoxBase</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetActiveSpellChecking(TextBoxBase textBox, bool spellChecking)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetActiveSpellChecking(textBox As TextBoxBase, spellChecking As Boolean)</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.textboxbase">TextBoxBase</a></td>
      <td><span class="parametername">textBox</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.textboxbase">TextBoxBase</a> that will be monitored for spelling mistakes.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">spellChecking</span></td>
      <td><p>True to provide as-you-type spell-checking to the <code class="paramref">textBox</code>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_SpellChecker_C1SpellChecker_SetActiveSpellChecking_" data-uid="C1.Win.SpellChecker.C1SpellChecker.SetActiveSpellChecking*"></a>
<h4 id="C1_Win_SpellChecker_C1SpellChecker_SetActiveSpellChecking_C1_Win_SpellChecker_ISpellCheckableRichEditor_System_Boolean_" data-uid="C1.Win.SpellChecker.C1SpellChecker.SetActiveSpellChecking(C1.Win.SpellChecker.ISpellCheckableRichEditor,System.Boolean)">SetActiveSpellChecking(ISpellCheckableRichEditor, bool)</h4>
<div class="markdown level1 summary"><p>Sets whether the <a class="xref" href="C1.Win.SpellChecker.C1SpellChecker.html">C1SpellChecker</a> should monitor a given <a class="xref" href="C1.Win.SpellChecker.ISpellCheckableRichEditor.html">ISpellCheckableRichEditor</a>
and highlight spelling mistakes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetActiveSpellChecking(ISpellCheckableRichEditor editor, bool spellChecking)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetActiveSpellChecking(editor As ISpellCheckableRichEditor, spellChecking As Boolean)</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="C1.Win.SpellChecker.ISpellCheckableRichEditor.html">ISpellCheckableRichEditor</a></td>
      <td><span class="parametername">editor</span></td>
      <td><p><a class="xref" href="C1.Win.SpellChecker.ISpellCheckableRichEditor.html">ISpellCheckableRichEditor</a> that will be monitored for spelling mistakes.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">spellChecking</span></td>
      <td><p>True to provide as-you-type spell-checking to the <code class="paramref">editor</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_SpellChecker_C1SpellChecker_SetActiveSpellChecking_C1_Win_SpellChecker_ISpellCheckableRichEditor_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <a class="xref" href="C1.Win.SpellChecker.C1SpellChecker.html">C1SpellChecker</a> provides as-you-type spell-checking to controls based on the 
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.textboxbase">TextBoxBase</a>.</p>
<p>To spell-check other editors, you must write a wrapper class that implements the
<a class="xref" href="C1.Win.SpellChecker.ISpellCheckableRichEditor.html">ISpellCheckableRichEditor</a> interface. This class provides the necessary connection between 
the <a class="xref" href="C1.Win.SpellChecker.C1SpellChecker.html">C1SpellChecker</a> and the editor.</p>
</div>


<a id="C1_Win_SpellChecker_C1SpellChecker_SetActiveSpellChecking_" data-uid="C1.Win.SpellChecker.C1SpellChecker.SetActiveSpellChecking*"></a>
<h4 id="C1_Win_SpellChecker_C1SpellChecker_SetActiveSpellChecking_System_Windows_Forms_WebBrowser_System_Boolean_" data-uid="C1.Win.SpellChecker.C1SpellChecker.SetActiveSpellChecking(System.Windows.Forms.WebBrowser,System.Boolean)">SetActiveSpellChecking(WebBrowser, bool)</h4>
<div class="markdown level1 summary"><p>Sets whether the <a class="xref" href="C1.Win.SpellChecker.C1SpellChecker.html">C1SpellChecker</a> should highlight spelling mistakes in a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.webbrowser">WebBrowser</a> control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetActiveSpellChecking(WebBrowser browser, bool spellChecking)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetActiveSpellChecking(browser As WebBrowser, spellChecking As Boolean)</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.webbrowser">WebBrowser</a></td>
      <td><span class="parametername">browser</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.webbrowser">WebBrowser</a> that will be monitored for spelling mistakes.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">spellChecking</span></td>
      <td><p>True to provide as-you-type spell-checking to the <code class="paramref">browser</code>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_SpellChecker_C1SpellChecker_SetActiveSpellChecking_" data-uid="C1.Win.SpellChecker.C1SpellChecker.SetActiveSpellChecking*"></a>
<h4 id="C1_Win_SpellChecker_C1SpellChecker_SetActiveSpellChecking_System_Windows_Forms_Control_System_Object_System_Boolean_" data-uid="C1.Win.SpellChecker.C1SpellChecker.SetActiveSpellChecking(System.Windows.Forms.Control,System.Object,System.Boolean)">SetActiveSpellChecking(Control, object, bool)</h4>
<div class="markdown level1 summary"><p>Sets whether the <a class="xref" href="C1.Win.SpellChecker.C1SpellChecker.html">C1SpellChecker</a> should highlight spelling mistakes in a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.webbrowser">WebBrowser</a> control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetActiveSpellChecking(Control control, object activeXBrowser, bool spellChecking)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetActiveSpellChecking(control As Control, activeXBrowser As Object, spellChecking As Boolean)</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a> that will be monitored for spelling mistakes.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">activeXBrowser</span></td>
      <td><p><b>IHtmlDocument2</b> interface that exposes the control contents.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">spellChecking</span></td>
      <td><p>True to provide as-you-type spell-checking to the <code class="paramref">activeXBrowser</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
