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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:39:07+00:00 2026-06-12T22:39:07+00:00

Using VB.Net I have main form name as form1 and popup form name as

  • 0

Using VB.Net

I have main form name as form1 and popup form name as form2

Form1

tab button – for creating mulitple copy of form1 at runtime…

Creation of mulitple from1 at runtime code

form1 code

Dim mEntryForm As form1
        mEntryForm = New form1
        mEntryForm.Show()

The above code is creating a same copy of form1 at runtime.

Now i want to pass the value from popup form to current activeform

Code for sending the value to form1 from popup form (form2)

form2code

form1.textbox1.text = "100"

The above code is going to form1 textbox, instead of active form (mentryform)

How to solve this problem.

Need Vb.net code help

  • 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-12T22:39:08+00:00Added an answer on June 12, 2026 at 10:39 pm

    Although I totaly agree with the comments about your question I ll try to give you a solution

    Add a property to your Form2
    name smtng like ActiveForm1 as form1

    now because I haven’t understand completey your concept:

    -> if Form2 is a ShowDialog form then you cannot change the active form1.
    You need to set the property ActiveForm1

     dim frm2 as new form2
     frm2.ActiveForm1=me
     frm2.ShowDialog
    

    ->if Form2 is not a ShowDialog that means that you can change the active form1
    then you need to add this lines of code when a form1 is activated

    frm2.ActiveForm1=me 
    

    Now in form2:

     me.ActiveForm1.textbox1.text = "100"
    

    I hope that I helped you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's my setup. I'm using .NET: I have a Main.aspx lets call it. That
In ASP.NET MVC, I have a main standard form that posts to an action,
Technologies: C#, .Net, Winforms I have a main form that pulls data from a
I have a VB.NET form ( CopyScenarioForm ) with a OK button ( DialogResult
I'm using ASP.NET MVC, and I have a widget within my form collection on
I have a scenario. (Windows Forms, C#, .NET) There is a main form which
I have an .NET 4 WinForm application. I have a button on the main
sending mail along with embedded image using asp.net I have already used following but
using .NET 3.5. I have a function I want to make multithreaded calls to.
So I have a textbox in C# (Using .NET forms) where I am going

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.