Click here to Skip to main content
15,920,633 members
Home / Discussions / C#
   

C#

 
GeneralRe: RegionData format Pin
Nick Parker17-May-03 7:38
protectorNick Parker17-May-03 7:38 
QuestionHow to save a bitmap Pin
PrebKlok16-May-03 20:32
PrebKlok16-May-03 20:32 
AnswerRe: How to save a bitmap Pin
apferreira16-May-03 21:42
apferreira16-May-03 21:42 
GeneralRe: How to save a bitmap Pin
PrebKlok16-May-03 22:03
PrebKlok16-May-03 22:03 
GeneralRe: How to save a bitmap Pin
Nick Seng19-May-03 0:04
Nick Seng19-May-03 0:04 
GeneralRe: How to save a bitmap Pin
PrebKlok19-May-03 0:15
PrebKlok19-May-03 0:15 
GeneralRich Text Box Pin
Anonymous16-May-03 15:46
Anonymous16-May-03 15:46 
GeneralRe: Rich Text Box Pin
KingTermite17-May-03 6:24
KingTermite17-May-03 6:24 
Here is some code I scrolled a Rich Text Box with:
<br />
// Just make copy to not muck of original (paranoia)<br />
// and to have an easier name for method calls to make<br />
// code easier to read<br />
RichTextBox oBox = this.richTextBoxData;<br />
<br />
string strVbCode = "";<br />
<br />
bool fBold = false;<br />
<br />
int iIndex = 0;<br />
<br />
while (  iIndex < (oBox.TextLength)  )<br />
{<br />
  // Go one char at a time<br />
  oBox.Select(iIndex,1);<br />
<br />
  if (null != oBox.SelectionFont)<br />
  {<br />
    if (true == oBox.SelectionFont.Bold)<br />
    {<br />
      fBold = true;<br />
    }<br />
  }<br />
}<br />


I stripped out a bunch of stuff that was irrelevent to your question.

I'm not sure if this is your problem though. I'm wondering if when an RTF box redraws, it replaces the entier text instead of just the one new char and that is what messes up the way it looks. If so, then you might have to override the redraw event handler on it yourself (which may be a pain in the neck).



There are only 10 types of people in this world....those that understand binary, and those that do not.
Generalavi codec information Pin
cbiacca16-May-03 14:25
cbiacca16-May-03 14:25 
GeneralRe: avi codec information Pin
The Limey16-May-03 18:13
The Limey16-May-03 18:13 
GeneralRe: avi codec information Pin
J. Dunlap16-May-03 18:29
J. Dunlap16-May-03 18:29 
GeneralRe: avi codec information Pin
The Limey16-May-03 20:20
The Limey16-May-03 20:20 
GeneralRe: avi codec information Pin
leppie16-May-03 22:39
leppie16-May-03 22:39 
GeneralRe: avi codec information Pin
cbiacca17-May-03 9:33
cbiacca17-May-03 9:33 
GeneralRe: avi codec information Pin
leppie17-May-03 12:08
leppie17-May-03 12:08 
GeneralConfused by Invoke Pin
Neil Lamka16-May-03 8:41
Neil Lamka16-May-03 8:41 
GeneralRe: Confused by Invoke Pin
leppie16-May-03 11:59
leppie16-May-03 11:59 
GeneralRe: Confused by Invoke Pin
Wesner Moise19-May-03 18:54
Wesner Moise19-May-03 18:54 
Generalquestion about unbound column in DataGrid Pin
cruscal16-May-03 6:06
cruscal16-May-03 6:06 
GeneralUrlDownloadToFile strange behaviour Pin
GriffonRL16-May-03 5:35
GriffonRL16-May-03 5:35 
GeneralRe: UrlDownloadToFile strange behaviour Pin
James T. Johnson16-May-03 13:44
James T. Johnson16-May-03 13:44 
GeneralRe: UrlDownloadToFile strange behaviour Pin
J. Dunlap16-May-03 13:48
J. Dunlap16-May-03 13:48 
GeneralRe: UrlDownloadToFile strange behaviour Pin
GriffonRL18-May-03 22:39
GriffonRL18-May-03 22:39 
GeneralRe: UrlDownloadToFile strange behaviour Pin
GriffonRL18-May-03 22:40
GriffonRL18-May-03 22:40 
GeneralIDocHostUIHandler and InternetExplorer object. Pin
GriffonRL16-May-03 4:14
GriffonRL16-May-03 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.