# C1.Win.SuperTooltip.C1SuperTooltipBase.LinkClicked

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_SuperTooltip_C1SuperTooltipBase_LinkClicked" data-uid="C1.Win.SuperTooltip.C1SuperTooltipBase.LinkClicked" class="text-break">LinkClicked Event
</h1>
<div class="markdown level0 summary"><p>Event that fires when the user clicks a hyperlink within a <a class="xref" href="C1.Win.SuperTooltip.C1SuperTooltipBase.html">C1SuperTooltipBase</a>.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.SuperTooltip.html">C1.Win.SuperTooltip</a></h6>
<h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
<h5 id="C1_Win_SuperTooltip_C1SuperTooltipBase_LinkClicked_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event C1SuperLabelLinkClickedEventHandler LinkClicked</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event LinkClicked As C1SuperLabelLinkClickedEventHandler</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.SuperTooltip.C1SuperLabelLinkClickedEventHandler.html">C1SuperLabelLinkClickedEventHandler</a></td>
      <td>Event that fires when the user clicks a hyperlink within a .</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_SuperTooltip_C1SuperTooltipBase_LinkClicked_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>By default, tooltips are invisible to the mouse and therefore cannot be clicked. 
You must set the <a class="xref" href="C1.Win.SuperTooltip.C1SuperTooltipBase.HitTestVisible.html#C1_Win_SuperTooltip_C1SuperTooltipBase_HitTestVisible">HitTestVisible</a> property is to true in order to make the
tooltip visible to the mouse (and clickable).</p>
<p>Hyperlinks are created using "A" tags in the HTML source text. When hyperlinks are clicked,
the <b>LinkClicked</b> event fires and provides information about the link. The event handler
can then take appropriate action.</p>
</div>
<h5 id="C1_Win_SuperTooltip_C1SuperTooltipBase_LinkClicked_examples"><strong>Examples</strong></h5>
<p>The example below creates some hyperlinks using &quot;A&quot; tags. When the user clicks the link, the
event handler shows a message box.</p>
<pre><code class="lang-csharp">// configure c1superTooltip
c1superTooltip.HitTestVisible = true;
var tipText =
    "click &lt;a href='about'&gt;&lt;b&gt;HERE&lt;/b&gt;&lt;/a&gt; to see an about box.&lt;br&gt;" +
    "or click &lt;a href='time'&gt;&lt;b&gt;HERE&lt;/b&gt;&lt;/a&gt; to see the current time.";
c1superTooltip.SetToolTip(someControl, tipText);

// attach event handler
c1superTooltip.LinkClicked += c1superTooltip_LinkClicked;
// ...

void c1superTooltip_LinkClicked(object sender, C1SuperLabelLinkClickedEventArgs e)
{
  if (e.HRef == "about")
  {
    MessageBox.Show("About C1SuperLabel!");
  }
  else if (e.HRef == "time")
  {
    MessageBox.Show("The time is " + DateTime.Now.ToShortTimeString());
  }
}</code></pre>

</div>
