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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:39:09+00:00 2026-06-14T07:39:09+00:00

What I’m trying to do, when we click on button in radform1(Parent), hide radform1

  • 0

What I’m trying to do, when we click on button in radform1(Parent), hide radform1 then update the text/label/radgrid header text values in Form1(child form),
once we close the Form1(child form)..close radform1(Parent) as well.

I’m getting a error message : Invalid OPeration Exception was Un-HandledCross-thread operation not valid
Control ‘radPageView1 has been accessed from a thread other than the one on which it was created.

How can i use the invoke or action method to fix this problem?? I couldn’t understand the concept exactly.. Please explain to me what should i do here…Any help is appreciated!

Form1 frm = new Form1();
        private void radButton1_Click(object sender, EventArgs e) // French Version Button
        {
            timer1.Enabled = true;
            radProgressBar1.Visible = true;
            frm.radGridView1.Columns[0].HeaderText = "Test"; // Change the Radgrid Header Text at Col[0]

        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            ticks++;
            radProgressBar1.Value1 = ticks;
            if (ticks != 100) return;
            timer1.Enabled = false;
            ticks = 0;

            frm.FormClosed += (_, args) => frm.Close();
            frm.Hide();
            frm.Show();

        }
  • 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-14T07:39:10+00:00Added an answer on June 14, 2026 at 7:39 am

    I don’t know if I understand well, but I think you need something like this:

    public static void InvokeIfRequired(this Form c, Action<Form> action)
            {
                if (c.InvokeRequired)
                {
                    try { c.Invoke(new Action(() => action(c))); }
                    catch { }
                }
                else
                {
                    action(c);
                }
            }
    

    and call

    frm.InvokeIfRequired((_)=>{frm.ChangeSomethingInTheUI();});
    

    in this way you are sure that the action will be performed inside the right thread.

    Hope this helps.

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

Sidebar

Related Questions

I'm trying to pass a NSString text to a UIViewController in button click event
I am trying to click a save button and then call the validate function
I am trying to make a form so when user click button then it
I am trying to click a button with Perl Mechanize, but there are some
I am trying to click a button and add a resistor. So what I
I am trying to use some action when I click button in navigation controller.
I am trying to reset the UIPickerView on button click. My pickerview id is
I am trying to send an email in the button click event in the
I am trying to modify the script below to click a button that looks
I was trying to validate dates using java script on button click event.If validation

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.