Results 1 to 5 of 5

Thread: Opening Links

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    2

    Opening Links

    Hi,

    this is a code for open a web link :
    VB Code:
    1. Option Explicit
    2.  
    3. 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
    4.  
    5. Const SW_NORMAL = 1
    6.  
    7. Private Sub Command1_Click()
    8. Dim X
    9. X = ShellExecute(Me.hwnd, "Open", "[COLOR=Red]PAGE A[/COLOR]", &O0, &O0, SW_NORMAL)
    10. 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?.

  2. #2
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    2

    Re: Opening Links

    Quote 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.

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    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"

  5. #5
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    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
  •  



Click Here to Expand Forum to Full Width