C1TopicBar Links no double click function to add code?

Posted by: d.deweerdt on 14 July 2020, 4:40 am EST

    • Post Options:
    • Link

    Posted 14 July 2020, 4:40 am EST

    Hi ! I am pretty new to coding and i am having trouble with ure TopicBar Links.

    I created 3 TopicBarPages and each has his own links.

    Now i wanna add a click event to my links. Normally i double click an object and i can start adding my code. Now this is something thats doesnt work work with the C1TopicBar Links. Can someone send me in the right direction? i just wanna add some code. ( in the mean while i found a way not sure thats its perfect ) But is there a possibility with a future update u can just double click on the link to add ure code?```

    Private Sub C1TopicBar1_LinkClick(sender As Object, e As C1TopicBarClickEventArgs) Handles C1TopicBar1.LinkClick

    Select Case e.Link.Tag

    Case “TagPersonen”

    Dim frm As New Form1

    frm.ShowDialog()

    Case “TaOvereenkomsten”

    Dim frm As New Form1

    frm.ShowDialog()

        End Select
    
        ' MsgBox("U klikte op de link met de tag=>" & e.Link.Tag)
    End Sub
    
    Did it like this now but if a friend starts working with me he needs to know al the tags. if u could just double click it and then write code would be easyer ( but correct me if i am wrong or if there are better ways to do this)
  • Posted 15 July 2020, 6:42 am EST

    Hi Dimitri,

    C1TopicLink is not a control so you can not raise an event by double-clicking on it and also you can not raise the event for the individual topic link.

    You need to write the condition for individual links in the LinkClick event of C1TopicBar. You can raise the LinkClick event by following the below-given steps:

    1: Right Click on the Topic bar and click on Properties option from the context menu.

    2: Go to the Events tab in the Properties dialog.

    3: Double click on the LinkClick event. It will create a handler of the event.

    Regards,

    Prabhat Sharma.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels