PDA

View Full Version : ایجاد لینک برروی فرم در vb



soheyl_f
چهارشنبه 24 اردیبهشت 1382, 06:52 صبح
باسلام
میخواهم یک فرم about درvb درست کنم که دو تا لینک داره.یکی به e-mail ودیگری به web site.
اما نمیدونم چطوراین لینکهارودرست کنم :cry:
ممنون میشم اگه توضیحاتی درسطح اینجانب(مبتدی) برای ایجاداین دولینک بدهید.
باتشکر.
سهیل

Vahid_Nasiri
چهارشنبه 31 اردیبهشت 1382, 19:17 عصر
عزیزم بیبن این چطوره :



Public Sub GoToInternet(Parent As Form, URL As String, windowstyle As T_WindowStyle)
ShellExecute Parent.hwnd, "Open", URL, "", "", windowstyle
End Sub

سپس


GoToInternet Me, "http://www.ddd.com/index.html", Normal

و یا


GoToInternet Me, "mailto:ddd@yahoo.com", Normal

بدیهی است که :


Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByValhwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVallpParameters As String, ByVal lpdirectory As String, ByVal nShowCmd As Long) As Long

soheyl_f
پنج شنبه 01 خرداد 1382, 06:01 صبح
عزیزم بیبن این چطوره :



Public Sub GoToInternet(Parent As Form, URL As String, windowstyle As T_WindowStyle)
ShellExecute Parent.hwnd, "Open", URL, "", "", windowstyle
End Sub

سپس


GoToInternet Me, "http://www.ddd.com/index.html", Normal

و یا


GoToInternet Me, "mailto:ddd@yahoo.com", Normal

بدیهی است که :


Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByValhwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVallpParameters As String,
ByVal lpdirectory As String, ByVal nShowCmd As Long) As Long

سلام...
دست شمادردنکند.... :)