Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello again ;)
Today i wanna make a textbox with function of printing via default windows printer...
How can i make it? What action should i write in Button click method?

And what the catch situation would be, if the printer is not installed in the system?

Regards.
Posted
Updated 2-Jun-10 22:26pm
v2
Comments
Sandeep Mewara 3-Jun-10 4:34am    
Your question is not quite clear. You want to print in a textbox or you want to use textbox as a trigger for print?
DamiRocK 3-Jun-10 4:36am    
I want to print the text-content of the textbox

1 solution

Use the PrintDialog component in your form. Here is a link on how to use it.

http://msdn.microsoft.com/en-us/library/system.windows.forms.printdialog.aspx
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900