0

hallo programers
ok this code will save data withc is URL from textbox and load it to listbox , but i want it save first name of uRl like google then in other textbox put URl and save so when its load data its shows only name like Google not http://www.google.com/ in listbox sometimes the link is too long and it will be not good interface in form1
and then when u click Google in listbox it open its URl google.com

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click



        My.Settings.FavList.Add(url_text.Text)
        ListBox1.Items.Add(url_text.Text)



        My.Settings.Save()

    End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load


    Dim c As Integer = My.Settings.FavList.Count
    Dim x As Integer
    For a = 0 To c - 1
        Me.ListBox1.Items.Add(My.Settings.FavList.Item(x))

    Next

Edited by oskole

2
Contributors
1
Reply
2
Views
4 Years
Discussion Span
Last Post by thines01
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.