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

  • SEARCH
  • Home
  • 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 8297067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:15:49+00:00 2026-06-08T15:15:49+00:00

I have a form that has MenuScripts (top-levels and second-levels). The problem that I

  • 0

I have a form that has MenuScripts (top-levels and second-levels).

The problem that I am having is one of the second-levels is “Add” which brings you to another form. This form has a button ‘Record’ and textboxes. This form allows the user to input data and when the record button is clicked, the inputted data is written to a text file.

Back to the first form. Another second-level MenuScript is “Update” which brings the user to the same form as “Add”; but first, the user has to click an item within a listbox to proceed.

How do I get the data from the selected item to appear in the appropriate textboxes and how do I get the ‘Record’ button to update data instead of thinking it is only an add-data button?

Also, if someone can give me some pointers on making sure the user selects an item within the listbox would definitely be a plus!

Unfortunately, I cannot add images since my reputation is too low.

Here is a visual representation of my ultimate goal

  • 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-06-08T15:15:51+00:00Added an answer on June 8, 2026 at 3:15 pm

    To access the control in another form, you could prefix the formname to the control name(name of the control in the other form).

    Example:

    Form2.TextBox1.Text = "Hey, this is the second form"
    

    To check whether an item is selected, you could do this way:

        If ListBox1.SelectedItems.Count = 0 Then
            MessageBox.Show("Please select an item")
        Else
            MessageBox.Show("Thanks for selecting an item")
        End If
    

    Or, this way:

        If ListBox1.SelectedIndex = -1 Then
            MessageBox.Show("Please select an item")
        Else
            MessageBox.Show("Thanks for selecting an item")
        End If
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one form that has an option to open another (dialogue). I want
I have a form that has two buttons on it, one yes, one no,
I have a form that has 90 buttons on it, one button for each
I have a form that has several controls: ProgressBar at the top of the
i have form that has multiple input text boxes, Which has got some text
I have a form that has to be on top for a period of
I have a form that has values prefilled for usability/hints - unfortunately one of
I have one form that has several elements and two submit buttons, one is
llo, I have a form that has two submit buttons: one accept and one
I have a form that has 2 splitters. One splitter splits the form horizonally

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.