Click here to Skip to main content
16,004,969 members
Home / Discussions / C#
   

C#

 
GeneralRe: RichTextBox - Saving embedded controls Pin
mav.northwind29-Nov-06 18:59
mav.northwind29-Nov-06 18:59 
GeneralRe: RichTextBox - Saving embedded controls Pin
Anthony Queen30-Nov-06 3:57
Anthony Queen30-Nov-06 3:57 
GeneralRe: RichTextBox - Saving embedded controls Pin
Anthony Queen4-Dec-06 3:00
Anthony Queen4-Dec-06 3:00 
QuestionListbox and contextmenu Pin
iakob29-Nov-06 9:05
iakob29-Nov-06 9:05 
AnswerRe: Listbox and contextmenu Pin
led mike29-Nov-06 9:14
led mike29-Nov-06 9:14 
AnswerRe: Listbox and contextmenu Pin
Scott Dorman29-Nov-06 10:57
professionalScott Dorman29-Nov-06 10:57 
AnswerThanks Was: Listbox and contextmenu Pin
iakob29-Nov-06 20:34
iakob29-Nov-06 20:34 
QuestionRichTextBox Coloring Problem Pin
NaNg1524129-Nov-06 9:02
NaNg1524129-Nov-06 9:02 
Hey, this is my problem: i select the last line after i added the new text, i change the color of the line, but then all the lines before becomes the first color inserted and not the color i added them before.

what's the problem and how can i fix it?
this is the code where i add the text in:

private void rtbAddText(String NewText, Color NewColor)
{
    NewText += Environment.NewLine;

    if (NewColor == null)
        this.rtbConsole.Text = NewText;
    else
    {
        int OldLength = rtbConsole.Text.Length;
        this.rtbConsole.Text += NewText;
        this.rtbConsole.Select(OldLength, NewText.Length);
        this.rtbConsole.SelectionColor = NewColor;
        //this.Select();
        //rtbConsole.Select();
    }
}

Thanks... NaNg.
AnswerRe: RichTextBox Coloring Problem Pin
Torsten Mauz29-Nov-06 9:31
Torsten Mauz29-Nov-06 9:31 
GeneralRe: RichTextBox Coloring Problem Pin
NaNg1524129-Nov-06 9:46
NaNg1524129-Nov-06 9:46 
QuestionEditing all GridView Rows Pin
Abbas8229-Nov-06 8:52
Abbas8229-Nov-06 8:52 
AnswerRe: Editing all GridView Rows Pin
led mike29-Nov-06 9:15
led mike29-Nov-06 9:15 
GeneralRe: Editing all GridView Rows Pin
Abbas8229-Nov-06 11:12
Abbas8229-Nov-06 11:12 
QuestionRichTextBox quandry Pin
Vodstok29-Nov-06 8:38
Vodstok29-Nov-06 8:38 
AnswerRe: RichTextBox quandry Pin
NaNg1524129-Nov-06 9:04
NaNg1524129-Nov-06 9:04 
GeneralRe: RichTextBox quandry Pin
Vodstok29-Nov-06 9:34
Vodstok29-Nov-06 9:34 
AnswerRe: RichTextBox quandry Pin
Anthony Queen29-Nov-06 9:57
Anthony Queen29-Nov-06 9:57 
GeneralRe: RichTextBox quandry Pin
Vodstok29-Nov-06 10:16
Vodstok29-Nov-06 10:16 
GeneralRe: RichTextBox quandry Pin
Anthony Queen29-Nov-06 10:23
Anthony Queen29-Nov-06 10:23 
QuestionDataTable & DataView Pin
Mohammed Elkholy29-Nov-06 7:40
Mohammed Elkholy29-Nov-06 7:40 
AnswerRe: DataTable & DataView Pin
ednrgc29-Nov-06 8:40
ednrgc29-Nov-06 8:40 
GeneralRe: DataTable & DataView Pin
Mohammed Elkholy29-Nov-06 9:01
Mohammed Elkholy29-Nov-06 9:01 
GeneralRe: DataTable & DataView Pin
Stathread29-Nov-06 9:56
Stathread29-Nov-06 9:56 
QuestionLocalization of data Pin
Herhighness29-Nov-06 7:24
Herhighness29-Nov-06 7:24 
AnswerRe: Localization of data Pin
dead_link29-Nov-06 8:10
dead_link29-Nov-06 8:10 

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.