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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:39:38+00:00 2026-05-26T20:39:38+00:00

currently i am using a handmade Messagebox build by the idea of: Communicate between

  • 0

currently i am using a handmade Messagebox build by the idea of:

Communicate between two windows forms in C#

this solution put as base of a section of my project i found out it is not reacting straight away when i use this code:

//Form 1
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        Framerate = "Test1";
    }

    private void button1_Click(object sender, EventArgs e)
    {
        Form2 frm = new Form2(this);
        frm.Show();

        label2.Text = Framerate; // this statement is delayed / working too soon
    }

    public string Framerate
    {
        get { return label1.Text; }
        set { label1.Text = value; }
    }
}

in Form2 i am changing Framerate.
when debugging this project i found out FrameRate is changing in Form2 and also on Form1 but when i run it further

  label2.Text = Framerate

is not changed. my question, why is it not changing right away, and what can i do to get it to change right away

edit:

it seems it runs whole button1_click before showing Form2.

Label1.Text is changed when i’ m closing Form2 (bacause of the get / set stuff) but that is too late for my application

EDIT:

after some messing arround i found an answer myself, maybe not nice but working for my application:

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        Framerate = "Test1";
    }

    private void button1_Click(object sender, EventArgs e)
    {
        Form2 frm = new Form2(this);
        frm.Show();
    }
    private void test()
    {
        label2.Text = Framerate;
    }

    public string Framerate
    {
        get { return label1.Text; }
        set
        {
            label1.Text = value;
            test();
        }
    }
}

everyone thanks for trying to help me.

  • 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-26T20:39:39+00:00Added an answer on May 26, 2026 at 8:39 pm

    after some messing arround i found an answer myself, maybe not nice but working for my application:

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            Framerate = "Test1";
        }
    
        private void button1_Click(object sender, EventArgs e)
        {
            Form2 frm = new Form2(this);
            frm.Show();
        }
        private void test()
        {
            label2.Text = Framerate;
        }
    
        public string Framerate
        {
            get { return label1.Text; }
            set
            {
                label1.Text = value;
                test();
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using Windows Server 2008 Standard and have several Hyper V machines.
I'm currently using DPack as this adds a Collapse All Projects option to the
Im currently using codeigniter to build a messaging system and im trying to stay
I am currently using the community edition of jasperReports Server 4.1.0 build 20110626_0015. basically,
I am currently using this syntax in my Django 1.1.2 template: {% ifnotequal myvalue
The code im currently using is this var focus; function focuswindow() { focus =
Currently using wxHTML to display a remote web page in a C++ Windows wxWidgets
I'm currently using this to convert a timestamp to a user's defined timezone .
I am currently using Java to communicate with device through Serial communication. I have
Im currently using the available toolkit for windows phone. By using the time picker,

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.