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 7976539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:56:05+00:00 2026-06-04T08:56:05+00:00

I have created 2 forms (Parent & Child), i want to store the unique

  • 0

I have created 2 forms (Parent & Child), i want to store the unique textbox value to a variable into the parent form.

Also like this:

Parent Code:

dim passed_value = new childform()
passed_value.show()

On close:

refresh passed_value variable using childform textbox value.

  • 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-04T08:56:07+00:00Added an answer on June 4, 2026 at 8:56 am

    You can Do the Following to accomplish the Task :

    • Declare a String variable in the child form.
        Public value As String
    
    • Use ShowDialog() in the Main Form to show the Child form.
        Dim frm As New Form2
        frm.ShowDialog()
    
    • [Set the value in your form as per your needs]
        value = "New Value"
    
    • Now get the value variable from the Child form and set the textbox text according to it.
        TextBox1.Text = frm.value
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 tables parent, child & grandchild of the form: +----------------+ +----------------+ +---------------------+
I have created two forms in my Windows Application. One Form acts as a
I have created Login forms and registration forms for a website. The form is
I have created a tab control and few forms. Each form opens in a
I have a form created in Windows Forms which is draggable wherever I click.
I have created a form that needs to show data from 2 tables (parent
I have a Windows Form application that involves two Forms. The child form is
I have an MDI parent form that creates many MDI children at run time.
I have created a program with Windows Forms in C# and the architecture is
i have created an mvc3 web application that uses forms based authentication. one part

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.