Skip to content

Printing MessageBox Text

Jamie

Asked Jun 13, 2008, 5:56 AM EDT1 answer
Share
LinkedInX
I am working on a C# program, and I need to print the text displayed on multiple messageboxes whenever the boxes are displayed.

I would prefer the code to be in a seperate section than that of the messagebox's code, but any printing help would get me in the right direction.

Thanks

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    first add the reference to the System.Threading; name space

     static void Main()
          {
              Thread th = new Thread(new ThreadStart(Print));
          }
           public void Print()
           {
              //TO DO: Perform the code that print messages here
               //The mesage box will be displayed by the main thread
               //at the same time the print action will be performed

           }

    0