Execute link internally?

I have a richtext box that loads data elements from a remote XML file. I want to instert active links into the richtext. That I can do. Now, that the links are there, how can I capture those click? Instead of opening a browser I want something like this.

Load_Video_Tut(tut)

to be executed on the click, with $tut being the hyperlink location.

Hope you understand what I'm needing. Thanks.

#463817

I'm no programmer but, are you talking about executing the link in an external program or internally into another control...media or browser??

If it's external maybe check out the FSO run or Exec method, preferably the Exec method.

#463820

I am using the QuickTime api, and loading links to mov files in a richtext box...when the link is clicked..i want the QT player to play the associated file.

I have everything coded, so when the link is pressed i need it to send it's link to Load_Video_Tut(tut)

the private sub Load_Video_Tut(tut) handles the rest.

#463826

Set the ENM_LINK and EM_AUTOURLDETECT flags; Then respond to EN_LINK notifications (check for WM_LBUTTONDOWN actually).

#463829

Ok, I dont know why my brain is not working.

Private Sub txtInfo_LinkClicked(ByVal sender As Object, ByVal e As System.Windows.Forms.LinkClickedEventArgs) Handles txtInfo.LinkClicked

End Sub

that is the linkclicked handler....how do I get the actual text of the link clicked?

#463830

e.LinkText is what you need ;)

#463904

haha. I am soo stupid. Thanks a lot Herd. That's exactly what I need to pass the URL to quicktime.

#463984