How to print a MessageBox string?

L

Lancer

Hi all,
I need to print (send to printer...) a string that has showed in a
MessageBox.

When I click Yes, I want to print str.

*********************************** CODE
*****************************************************************
MessageBox.Show(str, "Elaborazione", MessageBoxButtons.OK,
MessageBoxIcon.Error)
If MessageBox.Show("Si desidera stampare il report errori?", "Stampa",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes
Then
**************************************************************************************************************

I'm using Visual Studio 2005.

How can I do that?

Thanks
 
A

Armin Zingler

Lancer said:
Hi all,
I need to print (send to printer...) a string that has showed in a
MessageBox.

When I click Yes, I want to print str.

*********************************** CODE
*****************************************************************
MessageBox.Show(str, "Elaborazione", MessageBoxButtons.OK,
MessageBoxIcon.Error)
If MessageBox.Show("Si desidera stampare il report errori?",
"Stampa", MessageBoxButtons.YesNo, MessageBoxIcon.Question) =
DialogResult.Yes Then
**************************************************************************************************************

I'm using Visual Studio 2005.

How can I do that?


http://msdn2.microsoft.com/en-us/library/xdt36c58.aspx



Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top