# C1.Win.SuperTooltip.C1SuperLabelBase.LinkClicked

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_SuperTooltip_C1SuperLabelBase_LinkClicked" data-uid="C1.Win.SuperTooltip.C1SuperLabelBase.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.C1SuperLabelBase.html">C1SuperLabelBase</a> control.</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_C1SuperLabelBase_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  control.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_SuperTooltip_C1SuperLabelBase_LinkClicked_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>Hyperlinks are created using &quot;A&quot; 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_C1SuperLabelBase_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 c1superLabel
c1superLabel.AutoSize = true;
c1superLabel.Text =
    "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.";

// attach event handler
c1superLabel.LinkClicked += new C1SuperLabelLinkClickedEventHandler(c1superLabel_LinkClicked);
// ...

void c1superLabel_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>
