Re: How to make function string with Visual Basic 2013?
Actually that should be a sub rather than a function as it is not returning a value.
You also need to specify a argument in the sub definition if you want to pass it something
Code:
Sub weburl(TheUrl as String)
Dim ProcessProperties As New ProcessStartInfo
ProcessProperties.FileName = "iexplore.exe"
ProcessProperties.Arguments = TheUrl
ProcessProperties.WindowStyle = ProcessWindowStyle.Maximized
Dim myProcess As Process = Process.Start(ProcessProperties)
end Sub
weburl("http://www.google.com")
Always use [code][/code] tags when posting code.