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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:42:10+00:00 2026-05-21T04:42:10+00:00

Ok, so I have Form1 calling Form2 in a way that allows me to

  • 0

Ok, so I have Form1 calling Form2 in a way that allows me to access Form1’s functions from Form2. Code Below…

Form1….

    private void btnShowForm2_Click(object sender, EventArgs e)
    {
        frmForm2 tempDialog = new frmForm2(this);
        tempDialog.ShowDialog();
    }

Form2…

    private frmForm1 _parent;

    public frmForm2(frmForm1 frm1)
    {
        InitializeComponent();
        _parent = frm1;
    }

    private void btnDoFunction_Click(object sender, EventArgs e)
    {
        _parent.DoProcess();
    }

Now I have a new problem. I’m trying to update a status label of Form2, but the function that’s processing the task at hand is in Form1. How can I change the label of Form2 from within the Function of Form1?

  • 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-21T04:42:10+00:00Added an answer on May 21, 2026 at 4:42 am

    You can do so using delegate and event.

    1. Make an event in form1 using a delegate
    2. On progress in form1’s process trigger the event.
    3. put a handler to the form1 event in form2.
    4. Extract the progress from that eventargs implemented object in the handler.
    5. Show it in the lable in form2
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a couple of standard ASP.NET web methods that I'm calling from javascript
I have a form1.cs and in that form I have a panel1, in the
I have a form (Form1) that has a NotifyIcon on it. I have another
I have three forms: Form1 (Which is Mdi) Form2 (child of mdi) Form3 (child
if i have mediaplayer1 in Form1 and mediaplayer2 in Form2 than how can i
I have 3 forms in my project form1 , form2 , form3 and it
i have a prioblem with a callback because my Form1 open Form2 and send
if i have two media players in form1 and form2 respectively....how can i control
Let say I have are two WPF forms: Form1 and Form2 . Form1 contains
Let's say you have a form with a component that displays data from a

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.