Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help about Office word In C# Pin
kcynic7-Aug-07 19:16
kcynic7-Aug-07 19:16 
GeneralRe: Help about Office word In C# Pin
tker7-Aug-07 20:12
tker7-Aug-07 20:12 
GeneralRe: Help about Office word In C# Pin
kcynic7-Aug-07 21:33
kcynic7-Aug-07 21:33 
GeneralRe: Help about Office word In C# Pin
tker8-Aug-07 16:31
tker8-Aug-07 16:31 
AnswerRe: Help about Office word In C# Pin
MarkB7777-Aug-07 18:53
MarkB7777-Aug-07 18:53 
GeneralRe: Help about Office word In C# Pin
kcynic7-Aug-07 19:18
kcynic7-Aug-07 19:18 
QuestionGetting reflection permissions with ReflectionPermissionAttribute Pin
Luke Murray7-Aug-07 15:23
Luke Murray7-Aug-07 15:23 
QuestionConsole component Pin
noon427-Aug-07 14:31
noon427-Aug-07 14:31 
Hello,

I'd like to make a (read only) console component.
Almost a multiline TextBox in read only with a fixed number of lines.

As a DOS console which use a fixed buffer, the old lines should be discarded.
To limit the line number, I tryed to limit the character number (which is ok in my case) like so :

int maxNumCharacter = 10000;

public void AppendText(String text)
{
textBox.AppendText(text);

if (textBox.Text.Length > MaxNumCharacter)
textBox.Text = textBox.Text.Remove(0, textBox.Text.Length - maxNumCharacter);
}

But setting the Text property is not that good because :
- It replaces all the textBox characters. It's slow.
- It also has the effect to move the scrollbar to the top and I need it allways at the bottom if the user doesn't move it.

Is there any way to do such a component ?

Thanks.



AnswerRe: Console component Pin
Luc Pattyn7-Aug-07 14:39
sitebuilderLuc Pattyn7-Aug-07 14:39 
GeneralRe: Console component Pin
noon427-Aug-07 14:51
noon427-Aug-07 14:51 
GeneralRe: Console component Pin
Luc Pattyn7-Aug-07 15:04
sitebuilderLuc Pattyn7-Aug-07 15:04 
GeneralRe: Console component Pin
noon427-Aug-07 15:20
noon427-Aug-07 15:20 
QuestionInterface VS Abstract classes Pin
seemamltn7-Aug-07 13:58
seemamltn7-Aug-07 13:58 
GeneralRe: Interface VS Abstract classes Pin
PIEBALDconsult7-Aug-07 14:07
mvePIEBALDconsult7-Aug-07 14:07 
AnswerRe: Interface VS Abstract classes Pin
Christian Graus7-Aug-07 14:30
protectorChristian Graus7-Aug-07 14:30 
AnswerRe: Interface VS Abstract classes Pin
Jeff.Hu7-Aug-07 17:16
Jeff.Hu7-Aug-07 17:16 
AnswerRe: Interface VS Abstract classes Pin
tker7-Aug-07 18:32
tker7-Aug-07 18:32 
QuestionTreeView nodes Tooltiptext Pin
unitecsoft7-Aug-07 12:57
unitecsoft7-Aug-07 12:57 
AnswerRe: TreeView nodes Tooltiptext Pin
Luc Pattyn7-Aug-07 14:25
sitebuilderLuc Pattyn7-Aug-07 14:25 
GeneralRe: TreeView nodes Tooltiptext Pin
unitecsoft7-Aug-07 21:31
unitecsoft7-Aug-07 21:31 
QuestionCan a base class access a derived class? Pin
eggie57-Aug-07 12:25
eggie57-Aug-07 12:25 
AnswerRe: Can a base class access a derived class? Pin
il_masacratore7-Aug-07 12:34
il_masacratore7-Aug-07 12:34 
AnswerRe: Can a base class access a derived class? Pin
Christian Graus7-Aug-07 12:44
protectorChristian Graus7-Aug-07 12:44 
GeneralRe: Can a base class access a derived class? Pin
PIEBALDconsult7-Aug-07 14:04
mvePIEBALDconsult7-Aug-07 14:04 
GeneralRe: Can a base class access a derived class? Pin
Christian Graus7-Aug-07 14:27
protectorChristian Graus7-Aug-07 14:27 

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.