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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:44:52+00:00 2026-06-04T03:44:52+00:00

I would like a message box to be displayed and the program to just

  • 0

I would like a message box to be displayed and the program to just continue and not wait for me to click ok on this message box. Can it be done ?

else
{
    // Debug or messagebox the line that fails
    MessageBox.Show("Cols:" + _columns.Length.ToString() + " Line: " + lines[i]);

}
  • 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-04T03:44:53+00:00Added an answer on June 4, 2026 at 3:44 am

    First, the correct solution would be to replace the messagebox with a plain window (or form, if you are using winforms). That would be quite simple. Example (WPF)

    <Window x:Class="local:MyWindow" ...>
        <Grid>
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
                       Text="{Binding}" />
            <Button HorizontalAlignment="Right" VerticalAlignment="Bottom"
                       Click="SelfClose">Close</Button>
        </Grid>
    </Window>
    
    ...
    class MyWindow : Window
    {
        public MyWindow(string message) { this.DataContext = message; }
        void SelfClose(object sender, RoutedEventArgs e) { this.Close(); }
    }
    
    ...
    new MyWindow("Cols:" + _columns.Length.ToString() + " Line: " + lines[i]).Show();
    

    If you want a quick-and-dirty solution, you can just call the messagebox from a throwaway thread:

    Thread t = new Thread(() => MessageBox("lalalalala"));
    t.SetApartmentState(ApartmentState.STA);
    t.Start();
    

    (not sure if ApartmentState.STA is actually needed)

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

Sidebar

Related Questions

I would like a message to be shown to users who enter on my
I would like to display a message for a few seconds before moving on
I would like to create an outlook message with a subject and some attachments
I would like to know how to show an error message in the Django
I would like to set up an error page which will diplay a message
Instead of showing an error message 'Name is required' I would like to change
How can I have this other box display at the bottom of the first
Ok, I would like to put together a Python/Tkinter dialog box that displays a
I would like to show a simple confirmation dialog box show before running a
Is there a way I can display an error message in a popup box?

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.