Solved

HyperLink

Posted on 2000-03-28
9
249 Views
Last Modified: 2010-05-02
I have got a filename to be displayed on a page. How do I display it as a Hyperlink(Using What control and property)
0
Comment
Question by:arun_dp
  • 5
  • 3
9 Comments
 
LVL 10

Expert Comment

by:caraf_g
ID: 2663587
Get Karl Peterson's Hyperlabel control.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2663591
You can use Karl Peterson's Hyper(or is it Hover-?)label control.
0
 

Accepted Solution

by:
Gunjitsu earned 4 total points
ID: 2663933
chuck this in the (general) in the form you whish to have the link in

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

then have this for the link

Private Sub Link_Click()
Go = ShellExecute(Me.hwnd, vbNullString, "c:\file.html", vbNullString, "c:\", SW_SHOWNORMAL)
End Sub

thats it...
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2663982
Er... and what exactly is the "link" arun's clicking on?

That aint no answer.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Expert Comment

by:Gunjitsu
ID: 2664239
you change where it says "c:\file.htlm" to where you want the link to go.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2664473
"Private Sub Link_Click()"

What sort of control is "Link"?
0
 

Expert Comment

by:Gunjitsu
ID: 2664662
Link
can be anything. where i used it its a label.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2664687
So then, address the issue:

"How do I display it as a Hyperlink(Using What control and property)"

And *then* answer the question. Please withdraw your current answer as it does not address the question.

0
 

Author Comment

by:arun_dp
ID: 2695669
thank U Gunjitsu
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now