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

  • Home
  • SEARCH
  • 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 3277470
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:22:21+00:00 2026-05-17T19:22:21+00:00

I am displaying dialog on the main form, now one for loop is working

  • 0

I am displaying dialog on the main form, now one for loop is working behind but when that dialog will displayed code execution will be stopped, but I don’t want to let stop the execution of the code, is any other any way to do that ?

EDIT: I am using now thread to do that and my code is like

    Thread t;
    private void StartParsingByLoop()
    {
       t = new Thread(new ThreadStart(RunProgress));
       t.Start();
       for (int i = 0; i < dialog.FileNames.Length; i++)
       {
          cNoteToParsed.AllContrctNotesFilePath.Add(dialog.FileNames[i].ToString());
       }
          cNoteToParsed.ParseContractNote();
          if (cNoteToParsed.NOfContrctNoteParsed > 0)
                LoadTransactionsInDataGridView();
          t.Abort();
    }

    private void RunProgress()
    {
        frmProgress progressForImportingTran = new frmProgress("Importing Transactions", "ok");
        progressForImportingTran.ShowDialog();
    }

Now I have problem is that the dialog that shows the progress does not behave like dialog and gives access of the main form and if we try to access the main form then dialog goes to hide. And I dont want to make the dialog be hide.

  • 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-17T19:22:21+00:00Added an answer on May 17, 2026 at 7:22 pm

    You can let a different thread handle the loop.

    Response to edit: Can you provide more details, perhaps some code? what is the loop doing? what form do you display?

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

Sidebar

Related Questions

I have some code for displaying an alert dialog from one of my activities
i am using jquery ui dialog and displaying a form: $(#detailView).dialog({ resizable: false, height:
I have a main activity that launches a child activity using the following code:
I have one Activity which displayed some Dialog boxes and Progress bars. This activity
Hi i am displaying the alert dialog box using below code final CharSequence[] items
I am displaying a texture that I want to manipulate without out affecting the
How would I accomplish displaying a line as the one below in a console
I have a form in a Windows form application that I want to display
I want to create a dialog that contains some kind of text element (JLabel/JTextArea
I've built a log-in composite that I am displaying in my application entry-point to

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.