FAQ Database Discussion Community


How to know what Linklabel has been clicked?

c#,loops,event-handling,linklabel
Background I have created 8 linklabels which are created using a loop which gets data from a database. Each record fills a linklabel. How ever how can I distinguish what linklabel has been clicked on? Code for (int i = 0; i <= rowCount - 1; i++) { LinkLabel Linklabel...

Enable all LinkLabel controls

vb.net,visual-studio-2013,linklabel
I have a few links which are disabled by default on a form, each using a LinkLabel control. Depending on some user interaction I need to enable either one or all of the LinkLables. I can enable the single LinkLabel just fine, but I can't find a way of enabling...

Removing or Hide dynamically created linklabels and labels

c#,winforms,loops,labels,linklabel
Background I create a set of linklabel and label controls using a loop that uses data from a database as there content (Text). Question How do I then remove or change there visibility? What I would Like to Happen? On a button click event, I would like all of the...