Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[16] RichTextBox Control

Last post 04-24-2008 3:39 PM by mmarksbury. 26 replies.
Page 1 of 2 (27 items) 1 2 Next >
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [16] RichTextBox Control

    This thread is for discussions of RichTextBox Control.

    • 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.

  • 01-11-2002 4:57 AM In reply to

    • E`Tan
    • Not Ranked
    • Joined on 01-11-2002
    • New Member
    • Points 30

    Doesn't function

    After using this code the undo level is still 1.

    Can someone help me out ?

    Thank you !
    • Post Points: 0
  • 02-03-2002 3:28 PM In reply to

    • dave_c
    • Not Ranked
    • Joined on 01-14-2002
    • New Member
    • Points 5

    same here

    i expirienced the same thing... does anyone have a working example on this?
    • Post Points: 0
  • 02-12-2002 9:35 AM In reply to

    • James Crowley
    • Top 10 Contributor
    • Joined on 12-07-2000
    • United Kingdom
    • Guru
    • Points 14,865
    • SystemAdministrator
    What o/s are you running? on Windows 2000/XP, the richtext box has been "upgraded" to include multiple undo/redo.. otherwise, you'll probably be left with the old single undo/redo..

    • Post Points: 0
  • 03-07-2002 8:53 AM In reply to

    • Xueran
    • Not Ranked
    • Joined on 03-07-2002
    • New Member
    • Points 15

    i using win2k now

    but still  can only undo level 1,why?can u tell me?thank you very much.
    • Post Points: 0
  • 05-12-2002 3:22 PM In reply to

    • James Crowley
    • Top 10 Contributor
    • Joined on 12-07-2000
    • United Kingdom
    • Guru
    • Points 14,865
    • SystemAdministrator

    Changes for .Net

    VB.net has introduced a number of changes to the way you access the RichTextBox's properties. SelUnderline, SelBold, SelStrikethrough etc are now available in the

    richTextBox1.SelectionFont

    property. For example, in VB.net, use

    richTextBox1.SelectionFont.Underline

    instead of

    richTextBox1.SelUnderline

    I will try to update the tutorial to be .net compliant in the next month or so.
    • Post Points: 0
  • 10-08-2002 10:40 AM In reply to

    Need ur help

    Hi,

    Can u please tell me, how to do this in VB.NET or C#. I need it urgently.

    Thanx
    Ashok
    • Post Points: 0
  • 11-03-2002 3:12 PM In reply to

    • pateketu
    • Not Ranked
    • Joined on 11-03-2002
    • New Member
    • Points 10

    Read Only Property

    RichTextBOx1.SelectionFont.Bold
    RichTextBOx1.SelectionFont.Underline etc are readonly

    How to set the formating for the selected text???
    • Post Points: 10
  • 11-28-2002 1:26 PM In reply to

    RTB Detect URL


    How do you autodetect URL's in VB? Not .net!
    • Post Points: 0
  • 03-21-2003 7:51 AM In reply to

    • grovesy
    • Not Ranked
    • Joined on 03-21-2003
    • New Member
    • Points 45

    Weblink in text - Rich text box

    Is it possible to highlight a word in a "rich text box" and add a link to that word?

    For example in Microsoft Word you can highlight a word, click "insert" on the tool bar, select Hyperlink and add an url address to that word. This word can then be clicked on to go to that web page.

    Is this possible in RTB?

    Thanks
    Chris
    cgroves@lycos.co.uk
    • Post Points: 0
  • 07-30-2003 3:28 PM In reply to

    • JHuber
    • Not Ranked
    • Joined on 07-30-2003
    • New Member
    • Points 10

    Reason for one level of undo

    I believe the problem for VB'ers is that the RichText control is from richtx32.ocx, which is based on riched32.dll.  As per Microsoft ( http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp ) this library only supports one level of undo.  Later versions of riched (riched20.dll, etc.) allow for multiple levels, but I have found no Microsoft ocx that uses this library.

    Bottom line, not going to happen using ONLY Richtext control, even with the correct messages sent to it.

    As a side note, I found a few logic errors in above code...

    1)
      Public Property Get CanCopy() As Boolean
          If rtb1.SelLength < 0 Then
             CanCopy = True
          End If
      End Property

    Should read as

      Public Property Get CanCopy() As Boolean
         If rtb1.SelLength > 0 Then
            CanCopy = True
         End If
      End Property

    2)  
    With richtx32.ocx, the above code will display the undo all the time.  This is confusing during runtime.  Really we only want it to show if there is no redo.  This requires one of any number of possible revisions.  Generate your favorite.


    • Post Points: 0
  • 07-30-2003 3:30 PM In reply to

    • JHuber
    • Not Ranked
    • Joined on 07-30-2003
    • New Member
    • Points 10

    one level of undo for VB

    I believe the problem for VB'ers is that the RichText control is from richtx32.ocx, which is based on riched32.dll.  As per Microsoft ( http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp ) this library only supports one level of undo.  Later versions of riched (riched20.dll, etc.) allow for multiple levels, but I have found no Microsoft ocx that uses this library.

    Bottom line, not going to happen using ONLY Richtext control, even with the correct messages sent to it.

    As a side note, I found a few logic errors in above code...

    1)
      Public Property Get CanCopy() As Boolean
          If rtb1.SelLength < 0 Then
             CanCopy = True
          End If
      End Property

    Should read as

      Public Property Get CanCopy() As Boolean
         If rtb1.SelLength > 0 Then
            CanCopy = True
         End If
      End Property

    2)  
    With richtx32.ocx, the above code will display the undo all the time.  This is confusing during runtime.  Really we only want it to show if there is no redo.  This requires one of any number of possible revisions.  Generate your favorite.


    • Post Points: 0
  • 01-24-2004 12:54 PM In reply to

    question


    how can  inert image into richtextbox ?
    • Post Points: 0
  • 06-14-2004 2:52 PM In reply to

    This doesn't work for m

    I'm using VB6 - sp5 - -
    This code absolutely does not work with my system..... I've been told that it's because the RichTextBox that comes with VB is an older version of the dll -----

    Can I get it to work by replacing the RichEd dll?
    If so, where can I get it?
    • Post Points: 0
  • 07-01-2004 9:35 AM In reply to

    Scrolling a Richtextbox

    I am writing code for a connection routine and am using a rich text box to display the responses from the server.  However as the text is added the user is constantly haveing to manually scroll the window to see the new text.  I would like the program to automaically scroll the window for the user.  Any help on this would be appreciated.  thanks
    • Post Points: 0
Page 1 of 2 (27 items) 1 2 Next >