-
I need to put a rich text box on a form in VB4. Where do I find this control? It doesn't seem to be anywhere in my Toolbox. Should it be available in the custom controls?
When I have a rich text box on the form, how can I place it on my Printer object so that I can control where the text in it is printed?
Any help on either question greatly appreciated.
-
Some help
Here's some help(I hope :) )
From MSDN:
To use the RichTextBox control in your application, you must add the Richtx32.ocx file to the project
To print all or part of the text in a RichTextBox control use the SelPrint method.
About the printerobject I dont know.
good luck
-
See if this works.
Code:
RichTextBox1.SelPrint(Printer.hDC)
Printer.EndDoc ' Start printing