When I click the button.IE will open a blank page.How to do that in VB?Thanks a lot.
Printable View
When I click the button.IE will open a blank page.How to do that in VB?Thanks a lot.
VB Code:
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() Call ShellExecute(0&, "OPEN", "about:blank", vbNullString, vbNullString, 3) End Sub
Thank you,but it doesnot work at my computer.After I click the button,nothing happens.
Sorry, just noticed that the forum screwed with the post.
"about :blank" should be "about:blank"
:)
Thanks.It works after I change it.