|
-
Jun 26th, 2007, 06:43 PM
#1
Thread Starter
Frenzied Member
Help Please
Can anyone help me please.
I have the following code in
t Code:
Private Sub Form_Load()
FileName = App.Path & "/urls.txt"
Dim Favs
Open FileName For Input As #1
Do While Not EOF(1)
Line Input #1, Favs
List1.AddItem Favs
Loop
Close #1
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
-
Jun 26th, 2007, 06:51 PM
#2
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
-
Jun 26th, 2007, 06:58 PM
#3
Thread Starter
Frenzied Member
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
-
Jun 26th, 2007, 07:17 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|