Hello! I am new and are gonna make a "write'n'print" appelication, i have readed many samples(et.c) but i cant' find my answar!

How du i print from my textbox with name textb?

Recommended Answers

All 3 Replies

What do you mean by print from the text box?

Do you want to "print" this to the screen, console, file, a physical printer?

Hello! I am new and are gonna make a "write'n'print" appelication, i have readed many samples(et.c) but i cant' find my answar!

How du i print from my textbox with name textb?

to print text from form field to any other .. try the following
string s1=formobjectname.textfieldname.Text;

now u get the string in the object s1. now u can print it on console, file, form etc

To print to an actual document you're going to have to use a PrintDocument object, and override the PRINT event. Keep in mind though, that printing to a printer is very tricky at times, it's just like drawing with the 2D API. It's not like writing text to the screen, it's your job as the programmer to make sure all the lines fit and everything like that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.