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

Are you saying you want to split the URL so it will only show the domain?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.