|
-
Mar 26th, 2003, 10:13 PM
#1
Thread Starter
Member
how to make a button open a blank IE page?
When I click the button.IE will open a blank page.How to do that in VB?Thanks a lot.
-
Mar 26th, 2003, 10:15 PM
#2
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
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 26th, 2003, 10:23 PM
#3
Thread Starter
Member
Thank you,but it doesnot work at my computer.After I click the button,nothing happens.
-
Mar 26th, 2003, 10:24 PM
#4
Sorry, just noticed that the forum screwed with the post.
"about :blank" should be "about:blank"
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 26th, 2003, 10:25 PM
#5
Thread Starter
Member
Thanks.It works after I change it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|