Du skal bare have en textbox kaldet "txtSearch" og 2 knapper der hedder "cmdLucky" & "cmdSearch"...
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 cmdLucky_Click()
Call ShellExecute(0, "open", CStr("http://www.google.dk/search?q=" & txtSearch.Text & "&btnI=Jeg Føler Mig Heldig"), "", "", 10)
End Sub
Private Sub cmdSearch_Click()
Call ShellExecute(0, "open", CStr("http://www.google.dk/search?q=" & txtSearch.Text), "", "", 10)
End Sub
Gæt hvilken knap der gør hvad
// Great programs often follow great brains!