Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

RTF Control Help

I'm new to the RTF Control and would like to learn how to do some simple stuff.  Right now I'm using the AppendText function to add stuff to the control, and it seems to be working fine.  However I can't seem to insert carriage returns or tabs.  I would also like information on how to make a string bold, italic....  Any help on the subject would be appreciated.  Thanks!
0
NJordan72
Asked:
NJordan72
  • 4
  • 4
  • 2
  • +2
1 Solution
 
JonFish85Commented:
RichText1.SelBold = True
RichText1.SelItalic = True
RichText1.SelColor = vbRed

RichText1.Text = RichText1.Text & vbCrLf & "This is on a new line." & vbTab & "This is tabbed."


try that maybe?
0
 
AndrewDevCommented:
Is this any use to you

BWord: Full Featured Text/RTF Editor
http://www.freevbcode.com/ShowCode.Asp?ID=2355

What is your application trying to do? Is it an editor or something else? I can point you in the direction of some good examples if you can tell me what your trying to do.

Regards
Andrew



0
 
NJordan72Author Commented:
I am pulling information in the form of an XML document off of a server, and then I'm trying to format the information in a decent looking report using the RTF Box.  
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
NJordan72Author Commented:
I am pulling information in the form of an XML document off of a server, and then I'm trying to format the information in a decent looking report using the RTF Box.  
0
 
AndrewDevCommented:
I have found these on MSDN which I think cover everything you have asked for. Examples are given I suggest you start here and ask problems with specifics from that point


Setting font attributes with examples
http://msdn.microsoft.com/library/dotnet/cpguide/cpconsettingfontattributesforrichtextboxcontrol.htm

Supported RTF Codes
http://msdn.microsoft.com/library/devprods/vs6/vbasic/rtfbox98/vbconsupportedrtfcodes.htm

Rich Text Box Members with links to detail
http://msdn.microsoft.com/library/dotnet/cpref/frlrfsystemwinformsrichtextboxmemberstopic.htm


Good Luck
Andrew
0
 
MoondancerCommented:
What else is needed here to finalize this?
Moondancer
Community Support Moderator @ Experts Exchange
0
 
amp072397Commented:
NJordan72:

You have many open questions:

http://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20175227
http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20130164
http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20165375
http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20184291
http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20256443
http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20260378

To assist you in your cleanup, I'm providing the following guidelines:

1.  Stay active in your questions and provide feedback whenever possible. Likewise, when feedback has not been provided by the experts, commenting again makes them receive an email notification, and they may provide you with further information. Experts have no other method of searching for questions in which they have commented, except manually.

2.  Award points by hitting the Accept Comment As Answer button located above and to the left of that expert's comment.

3.  When grading, be sure to read:
http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3
to ensure that you understand the grading system here at EE. If you grade less than an A, you must explain why.

4.  Questions that were not helpful to you should be PAQ'd (stored in the database for their valuable content?even if not valuable to you) or deleted. To PAQ or delete a question, you must first post your intent in that question to make the experts aware. Then, if no experts object after three full days, you can post a zero-point question at community support to request deletion or PAQ. Please include the link(s) to the question(s).
CS:  http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
At that point, a moderator can refund your points and PAQ or delete the question for you. The delete button does not work.

5.  If you fail to respond to this cleanup request, I must report you to the Community Support Administrator for further action.

Our intent is to get the questions cleaned up, and not to embarrass or shame anyone. If you have any questions or need further assistance at all, feel free to ask me in this question or post a zero-point question at CS. We are very happy to help you in this task!


thanks!
amp
community support moderator
0
 
amp072397Commented:
NJordan, please read item 3 in my post above. You've given a C grade, and we would like to know why.

thanks!
amp
community support moderator
0
 
AndrewDevCommented:
Thanks amp
I wondered why too but didn't want to make a fuss

Andrew
0
 
amp072397Commented:
Changing to A grade now, lest I forget. If NJordan posts a viable reason, I'll change it back.

thanks!
amp
community support moderator
0
 
AndrewDevCommented:
Thanks again
Your doing a wonderful job :-)
0
 
amp072397Commented:
<blush>
thanks!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 4
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now