|
-
Apr 5th, 2009, 03:58 AM
#1
Thread Starter
Fanatic Member
code for a commond button
please help for a code to get URL (website) through commond button
-
Apr 5th, 2009, 05:27 AM
#2
Re: code for a commond button
Hey janu,
Not a clear question 
when a command button is pressed, then what you wan to do really?
-
Apr 5th, 2009, 06:52 AM
#3
Re: code for a commond button
What do you mean by "get URL"? Are you asking how to display a web page from a VB6 application using a command button?
-
Apr 5th, 2009, 08:44 AM
#4
Thread Starter
Fanatic Member
Re: code for a commond button
 Originally Posted by Hack
What do you mean by "get URL"? Are you asking how to display a web page from a VB6 application using a command button?
yes sir, you got my qurstion
-
Apr 5th, 2009, 11:05 AM
#5
Re: code for a commond button
-
Apr 6th, 2009, 01:14 PM
#6
Re: code for a commond button
Try this
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()
Dim lngOpenPage As Long
lngOpenPage = ShellExecute(Form1.hwnd, "Open", "http://www.vbforums.com", 0&, 0&, 0&)
End Sub
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
|