Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I change this event handler? Pin
Richard Andrew x6428-Aug-12 16:28
professionalRichard Andrew x6428-Aug-12 16:28 
GeneralRe: How can I change this event handler? Pin
turbosupramk328-Aug-12 16:47
turbosupramk328-Aug-12 16:47 
AnswerRe: How can I change this event handler? Pin
Richard Andrew x6428-Aug-12 16:55
professionalRichard Andrew x6428-Aug-12 16:55 
GeneralRe: How can I change this event handler? Pin
turbosupramk329-Aug-12 4:29
turbosupramk329-Aug-12 4:29 
AnswerRe: How can I change this event handler? Pin
BobJanova28-Aug-12 23:14
BobJanova28-Aug-12 23:14 
GeneralRe: How can I change this event handler? Pin
turbosupramk329-Aug-12 4:28
turbosupramk329-Aug-12 4:28 
GeneralRe: How can I change this event handler? Pin
BobJanova29-Aug-12 4:51
BobJanova29-Aug-12 4:51 
GeneralRe: How can I change this event handler? Pin
turbosupramk329-Aug-12 5:05
turbosupramk329-Aug-12 5:05 
Hi Bob,

I tried both sets of code, but in my post I was referring to your class, I only referenced the other link/set of code because it has a picture of how I would like my listbox to appear.

It is changing the text color and I would like the background color changed instead, and omit the scroll bar it attaches. I didn't see that function/option.

Here is what I am seeing ... is that what I should be seeing?

http://img404.imageshack.us/img404/8830/lineeditor1.jpg[^]


private void testFunction()
{
    try
    {


        LineEditor lineEditor = new LineEditor();
        lbxOutput.Controls.Add(lineEditor);
        lineEditor.ShowSelection = false;
        lineEditor.BottomAligned = false;
        lineEditor.Selectable = false;



        lineEditor.Lines.Add(new Line(Color.Red, "Liverpool"));
        lineEditor.Lines.Add(new Line(Color.Red, "Another test2"));
        lineEditor.Lines.Add(new Line(Color.Green, "Another test3"));
        lineEditor.Lines.Add(new Line(Color.Black, "Another test4"));
        lineEditor.Lines.Add(new Line(Color.Orange, "Another test5"));
         //remember to set Editable to true
        lineEditor.Lines.Add(new EditableLine(Color.Green, "Editable text"));
        lineEditor.Lines.Insert(new Line(Color.Black, "At the front"), 0);

    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message + " " + ex.StackTrace + " " + ex.Source);
    }
}

GeneralRe: How can I change this event handler? Pin
turbosupramk329-Aug-12 5:50
turbosupramk329-Aug-12 5:50 
GeneralRe: How can I change this event handler? Pin
BobJanova29-Aug-12 6:25
BobJanova29-Aug-12 6:25 
GeneralRe: How can I change this event handler? Pin
turbosupramk329-Aug-12 6:48
turbosupramk329-Aug-12 6:48 
GeneralRe: How can I change this event handler? Pin
turbosupramk330-Aug-12 6:37
turbosupramk330-Aug-12 6:37 
QuestionSpeechSynthesizer is too fast Pin
Jassim Rahma28-Aug-12 10:37
Jassim Rahma28-Aug-12 10:37 
AnswerRe: SpeechSynthesizer is too fast Pin
Ravi Bhavnani29-Aug-12 7:31
professionalRavi Bhavnani29-Aug-12 7:31 
QuestionSpecific Fill size Pin
Jassim Rahma28-Aug-12 10:02
Jassim Rahma28-Aug-12 10:02 
AnswerRe: Specific Fill size Pin
Eddy Vluggen28-Aug-12 10:33
professionalEddy Vluggen28-Aug-12 10:33 
AnswerRe: Specific Fill size Pin
BobJanova28-Aug-12 23:15
BobJanova28-Aug-12 23:15 
QuestionUsing UserControls Pin
WebMaster28-Aug-12 9:04
WebMaster28-Aug-12 9:04 
AnswerRe: Using UserControls Pin
Ian Shlasko28-Aug-12 9:26
Ian Shlasko28-Aug-12 9:26 
GeneralRe: Using UserControls Pin
WebMaster28-Aug-12 9:30
WebMaster28-Aug-12 9:30 
GeneralRe: Using UserControls Pin
Ian Shlasko28-Aug-12 9:44
Ian Shlasko28-Aug-12 9:44 
GeneralRe: Using UserControls Pin
WebMaster28-Aug-12 9:46
WebMaster28-Aug-12 9:46 
GeneralRe: Using UserControls Pin
Ian Shlasko28-Aug-12 9:50
Ian Shlasko28-Aug-12 9:50 
GeneralRe: Using UserControls Pin
WebMaster28-Aug-12 9:54
WebMaster28-Aug-12 9:54 
GeneralRe: Using UserControls Pin
Ian Shlasko28-Aug-12 9:59
Ian Shlasko28-Aug-12 9:59 

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.