User Profile

Collapse

Profile Sidebar

Collapse
DavidAM
DavidAM
Last Activity: Sep 14 '07, 08:04 AM
Joined: Aug 2 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • DavidAM
    started a topic RTF problem after setting rtf value
    in .NET

    RTF problem after setting rtf value

    In an application I'm loading a RTF value from a database into a richtextbox.
    After setting the RTF property of the richtextbox control I notice that this value is different than the database value

    Well it is something like this

    richtextbox.rtf = 'databasevalue'

    but after this statement I notice that the richtextbox.rtf value is not equal to 'databasevalue'

    Here is my rtf value (from...
    See more | Go to post

  • DavidAM
    replied to RichtextBox trim problem
    in .NET
    Already found a way to resolve this:

    Public Shared Sub TrimRichTextBox (ByRef RichTextControl As RichTextBox, _
    Optional ByVal LeadingSpaces As Boolean = True, _
    Optional ByVal TrailingSpaces As Boolean = True)
    Try
    If LeadingSpaces Then
    Do While RichTextControl .Text.StartsWit h("...
    See more | Go to post

    Leave a comment:


  • DavidAM
    started a topic RichtextBox trim problem
    in .NET

    RichtextBox trim problem

    Hello,

    In my code I use the following command:

    me.richtextbox1 .text = me.richtextbox1 .text.trim

    By doing this I lose al my text formatting, it seems that by setting the text property of a richtextbox you lose al the formatting.
    Any idea how I can remove the leading and trailing spaces in a text without losing the rtf formatting?

    Thanks in advance.

    David
    See more | Go to post
No activity results to display
Show More
Working...