Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Add url on the form

Sir how to add (url) on the main form. Thanks in advance.
[57 byte] By [Simtech] at [2007-11-11 11:58:36]
# 1 Re: Add url on the form
Show it where? In a textbox? A label? Something else?

Where is the URL coming from?
Hack at 2007-11-11 17:20:51 >
# 2 Re: Add url on the form
Sir when i click lable any site address on the form for example www.elkogik.com direct go on the site pls sir.?
Simtech at 2007-11-11 17:21:51 >
# 3 Re: Add url on the form
http://vbnet.mvps.org/index.html?code/intrinsic/sehyperlink.htm
Phil Weber at 2007-11-11 17:22:50 >
# 4 Re: Add url on the form
Option Explicit

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

Private Sub Label1_Click()
Dim lngOpenPage As Long
lngOpenPage = ShellExecute(Form1.hwnd, "Open", Label1.Caption, 0&, 0&, 0&)
End SubBut, you still didn't answer my question. How does the name of the site get into the label's caption?
Hack at 2007-11-11 17:23:51 >
# 5 Re: Add url on the form
sir nice replay ur gr8 thanku verymuch.
Simtech at 2007-11-11 17:25:01 >
# 6 Re: Add url on the form
You are welcome. :)
Hack at 2007-11-11 17:26:00 >