Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

RichTextBox contains last space with different size

$
0
0

Hello all,

I've a question about RichTextBox component and I hope you can help me.

I use it in my application and I could see the there is an 'empty' space at the end of all the lines. It can have a different size so my problem can happen sometimes.

The problem is that when I select the text and I add bullets, the last bullet has a different size. You can see the image attached.

I could see that it problem happens in NotePad too. In order to reproduce the problem in notePag program:

-Open notepad.

- Change the size.

- Write some lines

. Select all the text (you can see that there is an spacce at the end that is not selected)

-Press to add bullets.

The last bullet will have a different size. If you select this 'strange last space', you can see that it has the 'original' size so it is the size for the last paragrah and it is the fail.

What could I do?

The rtf code of my application is:

{\rtf1\ansi\ansicpg1252\deff0\deflang3082{\fonttbl{\f0\fnil\fcharset0 Arial;}{\f1\fnil\fcharset2 Symbol;}}
\viewkind4\uc1\pard{\pntext\f1\'B7\tab}{\*\pn\pnlvlblt\pnf1\pnindent0{\pntxtb\'B7}}\b\fs24 c\par
{\pntext\f1\'B7\tab}c\par
{\pntext\f1\'B7\tab}c\par
{\pntext\f1\'B7\tab}c\fs40\par
}

You can see 'fs40' in the last paragraph but 'fs24' for the others. 

Thanks in advace for your help!

BulletProblem


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>