473,413 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

richtext control paragraphs

Howdy!
I want to get the following in a Richtext control:

Paragraph 1....
Paragraph 2...
Obviously I want to do something like
rtb.SelectedText="Paragraph 1...";
rtb.SelectedText=<paragraph break>; (*)
rtb.<arrange indentation>;
rtb.SelectedText="Paragraph 2...";
but the trouble is the only way I can find to start a new paragraph is for
line (*) to be rtb.SelectedText="\n\n";
which rather defeats the object, as I don't want a blank line between the
paragraphs. How can I start a new paragraph, but only move the caret on to
the next line?

Thanks!
Nov 15 '05 #1
1 1578
It looks like tht Richtext control will treat all contiguous lines (no blank
lines in between) as a single paragraph, so...

I don't believe you can do this and still treat them as separate paragraphs.
You could use "\n", then indent, but if paragraph-level formatting is
applied, it will apply to both.
"Pete Griffint" <pe***********@hotmail.com> wrote in message
news:8a**************************@posting.google.c om...
Howdy!
I want to get the following in a Richtext control:

Paragraph 1....
Paragraph 2...
Obviously I want to do something like
rtb.SelectedText="Paragraph 1...";
rtb.SelectedText=<paragraph break>; (*)
rtb.<arrange indentation>;
rtb.SelectedText="Paragraph 2...";
but the trouble is the only way I can find to start a new paragraph is for
line (*) to be rtb.SelectedText="\n\n";
which rather defeats the object, as I don't want a blank line between the
paragraphs. How can I start a new paragraph, but only move the caret on to
the next line?

Thanks!

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: tlyczko | last post by:
I have Stephen Lebans' RichText control on a subform, which is bound to a memo field. The only editable control on this subform is the rich text control for the memo field. When the main form...
6
by: Tomo | last post by:
How to use RichText in ASP.NET application. I need to make web page where user can write some text, click save and than this content must be saved as html content. Can I find some richtext control...
6
by: Tomo | last post by:
How to use RichText in ASP.NET application. I need to make web page where user can write some text, click save and than this content must be saved as html content. Can I find some richtext control...
0
by: giddy | last post by:
hi , i made a little RtfEncapsulator. Its a class thats called RichText , it has an RtfElementCollection which takes any class that exposes the IRtfElement interface. I managed to make an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.