Code For: Button Click = Web Link
Visual basics 2008 Express Edition
Yes, ok lets say Button_1 i put on Windows Application, and whats the code, if i want it, when click lets say it opens Google

Thanks

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.Diagnostics.Process.Start("http://www.mpgh.net")
End Sub
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
Const SW_SHOWNORMAL = 1
Private Sub command1_Click()
ShellExecute Me.hwnd, vbNullString, "http://www.mpgh.net/", vbNullString, "C:\", SW_SHOWNORMAL
End Sub

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate(TextBox1.Text)
End Sub
End Class
. I just finish watching the tut video on it^



Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ShellExecute Me.Handle, vbNullString, "http://www.mpgh.net/", vbNullString, "C:\", SW_SHOWNORMAL
End Sub