Results 1 to 4 of 4

Thread: Help Please

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2004
    Posts
    1,202

    Help Please

    Can anyone help me please.

    I have the following code in

    t Code:
    1. Private Sub Form_Load()
    2. FileName = App.Path & "/urls.txt"
    3. Dim Favs
    4. Open FileName For Input As #1
    5. Do While Not EOF(1)
    6. Line Input #1, Favs
    7. List1.AddItem Favs
    8. Loop
    9. Close #1
    10. End Sub

    All the urls that are saved in to urls.txt are displayed on the listbox how do i get it so when someone clickson the url it then takes them to that page on my web browser its going to be like favs soon can anyone help please.
    come back and mark your original post as resoved if your problem is fixed

    Jamie Garland

  2. #2
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Help Please

    Code:
    Private Sub List1_Click()
       If List1.ListIndex >=0 Then 
          Webbrowser1.Navigate List1.List(List1.ListIndex)      'Or Shell the browser
       End If
    End Sub

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2004
    Posts
    1,202

    Re: Help Please

    How would i delete from the favs not them all just one url at a time.?
    come back and mark your original post as resoved if your problem is fixed

    Jamie Garland

  4. #4
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Help Please

    You will have to iterate from end of list to listindex=0 to avoid problems with indice shifts due to removal of list elements.

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