Smallbro Posted July 8, 2009 Author Share Posted July 8, 2009 Does anyone know how I would make a label when clicked open a webpage in there default browser? Kinda new to source :embarrassed: Link to comment Share on other sites More sharing options...
goku1993 Posted July 8, 2009 Share Posted July 8, 2009 double click label and put```OpenWebsite "URL HERE"```then```Public Sub OpenWebsite(URL As String)Dim ret&ret& = ShellExecute(Me.hWnd, "Open", URL, vbNullString, vbNullString, SW_SHOW)End Sub```at the end of the frm you added the first code.this somwhere in the frm```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```i think this is right for default browser not sure though Link to comment Share on other sites More sharing options...
dao Posted July 12, 2009 Share Posted July 12, 2009 yea do what he said =Pbut put the label were u want the homepage button to be Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now