Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[2026] Rich Text Box Controls

Last post 10-17-2005 8:16 AM by kailas. 28 replies.
Page 1 of 2 (29 items) 1 2 Next >
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [2026] Rich Text Box Controls

    This thread is for discussions of Rich Text Box Controls.

    • Post Points: 0
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 02-25-2002 12:40 AM In reply to

    Printing richtextbox contents

    Can you help me out in printing the formated text in richtextbox.
    • Post Points: 0
  • 02-25-2002 4:37 PM In reply to

    • tnb
    • Not Ranked
    • Joined on 02-25-2002
    • New Member
    • Points 5

    Printing Sub

    Private Sub mnuPrintItem_Click()
       'Prints the current document using the device
       'handle of the current printer
       RichTextBox1.SelPrint (Printer.hDC)
    End Sub
    • Post Points: 0
  • 02-25-2002 11:43 PM In reply to

    Richtextbox printing in vb.net

    Let me try the option u have mentioned , but will it work with vb.net need to be checked.

    There is no option of
    Richtextbox1.selprint(Printer.hdc) in vb.net that is only in VB6.

    Thanks
    • Post Points: 0
  • 04-24-2002 6:04 AM In reply to

    Line wrapping

    one thing you forgot - How do you toggle line wrapping on and off?!

    hee hee thanks
    ---------------------
    Thanks
    - Jimmy
    • Post Points: 0
  • 04-25-2002 12:36 AM In reply to

    • sreejath
    • Not Ranked
    • Joined on 04-17-2002
    • New Member
    • Points 35

    How to Justify Text

    Hi!,
    Could you tell me how to display the text in Justified manner in a RT Box?
    I've tried just about everything (other than writing a new control )
    Tx and Regards
    • Post Points: 0
  • 05-05-2002 1:40 PM In reply to

    • jgrout
    • Not Ranked
    • Joined on 05-05-2002
    • New Member
    • Points 5
    When printing Rich Textbox text it seems to disregard the Current X/Y command.  What gives>
    • Post Points: 0
  • 05-18-2002 5:41 PM In reply to

    Justify

    By justify im assuming you meen Right, Left and Center. You need to use the

    Code:
    object.SelAlignment


    and one of the following;


    1. vbLeftJustify
    2. vbRightJustify
    3. vbCenter


    for example;

    RichTextBox1.SelAlignment = vbCenter

    or

    RichTextBox1.SelAlignment = vbLeftJustify

    Hope thats some help;

    Luke

    • Post Points: 0
  • 05-18-2002 7:20 PM In reply to

    • sreejath
    • Not Ranked
    • Joined on 04-17-2002
    • New Member
    • Points 35

    No, no

    What I want is to present the text in a justified manner.
    Not left, right or center.

    Justified as in MS Word. ie, both left and right ends are aligned.
    • Post Points: 0
  • 05-18-2002 7:38 PM In reply to

    VB has no bulit in functions or constants for what you want, im not gonna be much help here sorry!

    • Post Points: 0
  • 05-20-2002 7:39 AM In reply to

    • sreejath
    • Not Ranked
    • Joined on 04-17-2002
    • New Member
    • Points 35

    Thanks anyway

    Thanks for taking the trouble to reply, man.
    Thanks a lot!
    Now, where can I find the soln for this?
    Quote:
    [1]Posted by phracker76 on 18 May 2002 07:38 PM[/1]
    VB has no bulit in functions or constants for what you want, im not gonna be much help here sorry!




    • Post Points: 0
  • 05-26-2002 1:22 PM In reply to

    • wocajaja
    • Not Ranked
    • Joined on 05-26-2002
    • New Member
    • Points 5

    Line/Word Wrapping

    Hello KillerSheep,

    Is this what you're looking for:

    '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Option Explicit

    Public Const WM_USER = &H400
    Private Const EM_SETTARGETDEVICE = (WM_USER + 72)

    Public Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal LParam As Long) As Long

    Public Enum ViewModes
       Default = 0
       WordWrap = 1
       WYSIWYG = 2
    End Enum

    Const EM_FORMATRANGE As Long = WM_USER + 57

    '** Set View Mode
    Public Sub SetViewMode(ByVal ViewMode As ViewModes)
       Select Case ViewMode 'Set View Mode
           Case 0 'No Wrap
               SendMessageLong rtfText.hWnd, EM_SETTARGETDEVICE, 0, 1
           Case 1 'Word Wrap
               SendMessageLong rtfText.hWnd, EM_SETTARGETDEVICE, 0, 0
           Case 2 'WYSIWYG
               On Error Resume Next
               SendMessageLong rtfText.hWnd, EM_SETTARGETDEVICE, Printer.hdc, Printer.Width
      End Select
    End Sub

    '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    By
    • Post Points: 0
  • 07-03-2002 9:40 PM In reply to

    • po8freak
    • Not Ranked
    • Joined on 03-08-2002
    • New Member
    • Points 30

    problems w this article

    K, first off. Right away you mension:

    Object.Save (FilePath, FileType)

    WHAT FILETYPES? Can it save in RTF, Text, and what are the corresponding numbers?????????????

    Secondly, I am sure that in EVERY rich text editor I have ever used, you can set different indents for different paragraphs. Yet you do not mension how to align a paragraph... "is just like setting the alignment for a whole textbox."

    Aside from that it was pretty good, but can't you also do Horizontal Rules in Rich Text? I know no-one normally does, but if ya can . . .

    Thanks for the info though, I was always confused about the select stuff.
    • Post Points: 0
  • 07-09-2002 1:47 AM In reply to

    • wiangube
    • Not Ranked
    • Joined on 07-09-2002
    • New Member
    • Points 5
    Have you tried the Multiline property?
    • Post Points: 0
  • 08-08-2002 5:41 AM In reply to

    • amoibade
    • Top 25 Contributor
    • Joined on 08-08-2002
    • Guru
    • Points 4,510

    Richtextbox control - add image

    Hi,

    i am working with richtextbox quite a lot of time, but i am still wondering how can i input a picture in it. Also i have the point that i ignore  some of his opportunities. So i would be glad if you could write something about them. Thank you on advance
    ==================================================
    Amoibade: Have fun and keep ... programming!!!
    e-mail me at: [email="amoibade3@hotmail.com"]amoibade3@hotmail.com[/email]
    ==================================================
    I am sorry if i am late to reply but i have a lot of studying, thanks...
    I am sorry for my english too...
    • Post Points: 0
Page 1 of 2 (29 items) 1 2 Next >