Post by knowledge on Nov 20, 2016 3:53:21 GMT 10
Hey guys, Finally, this is the last thing i will do in my web browser project! Thanks for those who helped me, tho. So, i wanna make an Favorites Bar like AirBrowse / google chrome etc, if you don't know how, then how even with a form. If its with form, i wanna it with favicons etc. I handled to make a fav form, with this code:
Private Sub favlist_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
ListBoxAdv1.Items.Clear()
Dim Contents As String = Favorites
Dim FileLine As Short
Dim StringData As String
FileLine = FreeFile()
FileOpen(FileLine, Contents, OpenMode.Input)
While Not EOF(FileLine)
StringData = LineInput(FileLine)
ListBoxAdv1.Items.Add((StringData))
End While
FileClose(FileLine)
End Sub 'Button ( Custom URL )
My.Settings.Bookmarks.Add(BrowserTextbox1.Text)
ListBoxAdv1.Items.Add(BrowserTextbox1.Text)
SW = System.IO.File.AppendText(Favorites)
SW.WriteLine(BrowserTextbox1.Text)
SW.Flush()
SW.Close() end sub ' this is the part that i cant do, it doesn't do anything when i double click, if it did, then it gives me "URL Is Invalid, although it's , " Listbox double click Private Sub ListBoxAdv1_ItemDoubleClick(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles ListBoxAdv1.ItemDoubleClick
If browserform.web.IsLive Then
browserform.web.Source = New Uri(ListBoxAdv1.SelectedItem.ToString)
End If
End Sub And for saving" My.Settings.Save
I don't recommend this code, because personally, i don't like it. I would like a bar better Thanks in advance!
|
|
Post by Nathan Lecompte on Nov 20, 2016 10:01:04 GMT 10
|
|
Post by knowledge on Nov 20, 2016 15:30:20 GMT 10
Yes but this isnt working with twbp tabs
See thus: For each item as TabPage in nyfrm.tabcontrol Bla bla Next I cant make the first line to twbp
|
|
Post by Nathan Lecompte on Nov 20, 2016 21:48:47 GMT 10
Isn't there already a bookmarks bar in TWBP itself? Why not just use that?
|
|
Post by knowledge on Nov 20, 2016 23:33:45 GMT 10
Lol is there an twbp bar for favorites? Idk lool
|
|
Post by knowledge on Nov 21, 2016 7:53:43 GMT 10
So anyways to make an bar or form?
|
|
Post by Nathan Lecompte on Nov 21, 2016 15:18:15 GMT 10
Well if you have the whole source code for TWBP, then yes, there should be.
|
|
Post by knowledge on Nov 21, 2016 15:29:25 GMT 10
No i dont have the whole source..
|
|
Post by bobowk on Nov 21, 2016 16:21:33 GMT 10
|
|
Post by Nathan Lecompte on Nov 21, 2016 17:27:07 GMT 10
|
|