Wie kann ich eine Internetseite im Standardbrowser aufrufen?
1) Mit der Shell-API:
2) Mit der rundll32.exe:
Keywords: Visual Basic 6, VB 6, URL aufrufen, Link öffnen, Standardbrowser, API, ShellExecute, FileProtocolHandler, rundll32
1) Mit der Shell-API:
Visual Basic-Quellcode
- 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 Command1_Click()
- Dim Result&
- Result = ShellExecute(Me.hwnd, "Open", _
- "http://www.activevb.de", "", App.Path, 1)
- End Sub
2) Mit der rundll32.exe:
Keywords: Visual Basic 6, VB 6, URL aufrufen, Link öffnen, Standardbrowser, API, ShellExecute, FileProtocolHandler, rundll32
Gruß, Agent Smith
activeFlags = (lazy OR weary)
Lemgo-Verschwörung | Mathematics | VB-Paradise in blau
activeFlags = (lazy OR weary)
Lemgo-Verschwörung | Mathematics | VB-Paradise in blau
Dieser Beitrag wurde bereits 4 mal editiert, zuletzt von „Mad Andy“ ()