LinkLabel not working

LinkLabel not working

eceballostorres
Participant Participant
631 Views
2 Replies
Message 1 of 3

LinkLabel not working

eceballostorres
Participant
Participant

Hi, I have a form being shown inside Revit and I added a LinkLabel control but it's not being shown as a Link (it's all grey like the normal text). Also when I click on it nothing happens. I know the link is being created correctly because I tested the same code in a Windows Forms application. Does anyone know what happens with this control inside of Revit? I read this post and that person says that the LinkLabel control doesn't work for him either.

 

Thanks in advance.

 

Notes:

  • Revit version: 2016.
  • Visual Studio version: 2013
0 Likes
632 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

I have no problem adding a working LinkLabel to a Windows Form displayed by an external Revit command.


I just created a new add-in, added a new form to it, added a LinkLabel control to that, and implemented its LinkClicked event handler.

 

Here is my entire Visual Studio solution demonstrating that:

 

https://github.com/jeremytammik/LinkLabelTest

 

Happy new Year to you!

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

eceballostorres
Participant
Participant

Thanks for your reply Jeremy. When I compile the code and start using it I have no problems with the control. But after creating an installer and distributing the add-in the control doesn't work. So basically it works on my computer (I hate that phrase) when I debug the code but not when I release it. I ended up using a normal button, it's not a fancy solution but it does the job.

 

Thanks again and happy new year to you too!

0 Likes