Results 1 to 3 of 3

Thread: Rich Text Box - Please Help!!!!!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Ireland
    Posts
    9

    Question

    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.
    Patrick Scahill

  2. #2
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Smile 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
    Onerrorgoto

    Dont be to optimistic, the light at the end of the tunnel might be a train

  3. #3
    Guest
    See if this works.

    Code:
    RichTextBox1.SelPrint(Printer.hDC)
    Printer.EndDoc  ' Start printing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width