title: VB.Net Create linklabel Function
body: <p>I'm trying to create a function that will create a linklabel programmatically. Is this possible? </p>
  
  <p>In my program, I am creating a main menu that will have specific link labels. When these Linklabels are clicked, it will search my SQL Database table for all controls associated with this linklabel. Then, it will programmatically create all the controls.</p>
  
  <p>My plan was to create a function, that would scroll through the control list, and create all the linklabels. But I cannot even figure out how to create the linklabel as a new linklabel using the variables passed to the function.</p>
  
  <pre><code>Function CreateLinkLabel(LinkName As String)
      Dim LinkName As New LinkLabel
  
  End Function
  </code></pre>