You all have seen the center aling in Microsoft Word.
How can i do the same and then print a string from a textbox or richbox?
Printable View
You all have seen the center aling in Microsoft Word.
How can i do the same and then print a string from a textbox or richbox?
Hi,
suppose u want to print text in textbox Text1:
Printer.CurrentX = (Printer.Width - Printer.TextWidth (Text1.Text)) \ 2
Printer.Print Text1
Printer.EndDoc
Sorry but i meant how to create the align where the text( a line)covers all the line and all the others lines.Did u understood?
You mean like that?Code:Richtextbox1.SelAlignment = rtfCenter