Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
SQL
I'm trying to create a function that will create a linklabel programmatically. I this possible?

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.

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.


VB
Function CreateLinkLabel(LinkName As String)
    Dim LinkName As New LinkLabel

End Function
Posted

1 solution

Hi refer this article,
LinkLabel in C#
 
Share this answer
 
Comments
Lost_in_Translation 29-Nov-15 17:02pm    
But I want to create a bunch of link labels using a list gathered from an SQL table. Is that possible?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900