Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3952568
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:51:58+00:00 2026-05-20T01:51:58+00:00

OK, so I am trying to make a program using Visual Basic that will

  • 0

OK, so I am trying to make a program using Visual Basic that will allow the user to add links to web pages (such as www.google.ca) to a list in the program and make it so that they do not dissapear once the program is closed.

So to get into more detail, I have a text box, a listview, and a button. When the user types a link into the text box it needs to be put into an array (called “addlink”) and then when the user presses the button, the link is typed into the listview as an object.

Then if the user clicks on that object in the listview, it will open up the browser using the WebBrowser command. How do I set the text in the textbox to an array once the button is clicked?

This program greatly resembles most Internet browser’s bookmarking feature. 😀

Specifications:

  • OS: Windows 7 Ultimate Edition
  • Software: Microsoft Visual Basic 2010 Express
  • Experience with Visual Basic: Average
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:51:58+00:00Added an answer on May 20, 2026 at 1:51 am

    To answer your question about adding to an array. You could do something like this.

    Dim addlink() As String
    
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If IsNothing(addlink) Then
            ReDim addlink(0)
        Else
            ReDim Preserve addlink(addlink.Count)
        End If
    
        addlink(UBound(addlink)) = TextBox1.Text
        TextBox1.Text = Nothing
    End Sub  
    

    Or to use a collection like @Cody Gray suggested

    Dim addlink As New List(Of String)
    
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        addlink.Add(TextBox1.Text)
        TextBox1.Text = Nothing
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a program in Visual C# that has my one created
I'm trying to make a setup program for an ASP.NET web site. I need
I'm trying to make a TCP Client program in C where the client will
Trying to make a make generic select control that I can dynamically add elements
I'm trying to make a program using the BFS algorithm so I put every
I'm just trying to make a program that displays a window with a box
I'm trying to make a simple blackjack program. Sadly, I'm having problems right off
Trying to make a web service call to an HTTPS endpoint in my Silverlight
this is my first post here! I'm trying to make a windows forms program
I'm using Visual Studio 2008 trying to debug a C# project. I had some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.