|
-
Jan 29th, 2007, 10:19 PM
#1
Thread Starter
New Member
Opening Links
Hi,
this is a code for open a web link :
VB Code:
Option Explicit
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
Const SW_NORMAL = 1
Private Sub Command1_Click()
Dim X
X = ShellExecute(Me.hwnd, "Open", "[COLOR=Red]PAGE A[/COLOR]", &O0, &O0, SW_NORMAL)
End Sub
After "PAGE A" i would like to open in the same window, PAGE B.
I need to have a reference (<href>) to go at PAGE B, that way i need to go to PAGE A first.
any ideas?.
-
Jan 30th, 2007, 12:05 AM
#2
PowerPoster
Re: Opening Links
if Page A is your page, you can redirect inside the HTML itself.
Optionally, if it is not your page, you could have a basic HTML page in your apps directory, which does what you need it to.
-
Jan 30th, 2007, 02:26 PM
#3
Thread Starter
New Member
Re: Opening Links
 Originally Posted by rory
if Page A is your page, you can redirect inside the HTML itself.
Optionally, if it is not your page, you could have a basic HTML page in your apps directory, which does what you need it to.
Nop, page A its not mine
I'm gonna check that about the html page.... i don't understand you very well
Last edited by wololo; Jan 30th, 2007 at 02:32 PM.
-
Jan 30th, 2007, 02:59 PM
#4
Re: Opening Links
You could use the webbrowser control.. open page A. then whenever you want.. open page B
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jan 30th, 2007, 03:00 PM
#5
Re: Opening Links
or if it needs to be in IE, you can create your own instance of IE and have control over it
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
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
|