Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
GeneralRe: any API to make flash file conversion? Pin
George_George11-Dec-08 1:59
George_George11-Dec-08 1:59 
GeneralRe: any API to make flash file conversion? Pin
Lev Danielyan11-Dec-08 2:03
Lev Danielyan11-Dec-08 2:03 
QuestionHow can i?? Pin
hotthoughtguy10-Dec-08 1:35
hotthoughtguy10-Dec-08 1:35 
AnswerRe: How can i?? Pin
SeMartens10-Dec-08 1:45
SeMartens10-Dec-08 1:45 
AnswerRe: How can i?? Pin
Lev Danielyan10-Dec-08 1:51
Lev Danielyan10-Dec-08 1:51 
GeneralRe: How can i?? Pin
hotthoughtguy10-Dec-08 2:14
hotthoughtguy10-Dec-08 2:14 
AnswerRe: How can i?? Pin
Nissim Salomon10-Dec-08 2:28
Nissim Salomon10-Dec-08 2:28 
QuestionLimiting the number of lines in a TextBox Pin
Dewald10-Dec-08 1:20
Dewald10-Dec-08 1:20 
I have a little server application that gives feedback to the user in two ways, one is to write entries to a log file and secondly by writing those same entries to a TextBox on the main form. The main form actually has very little other than this TextBox.

This server could run for months on end so I would like to limit the total number of lines in this TextBox to, let's say 1000, but on a FIFO basis. With a ListBox it would have been fairly simple - doing something like this, every time I add text to the control:

while (listBox1.Items.Count > 1000)
   listBox1.RemoveAt(0);


Is there an elegant way of doing the same with a TextBox?
AnswerRe: Limiting the number of lines in a TextBox Pin
Lev Danielyan10-Dec-08 2:01
Lev Danielyan10-Dec-08 2:01 
GeneralRe: Limiting the number of lines in a TextBox Pin
Luc Pattyn10-Dec-08 2:02
sitebuilderLuc Pattyn10-Dec-08 2:02 
GeneralRe: Limiting the number of lines in a TextBox Pin
Lev Danielyan10-Dec-08 2:05
Lev Danielyan10-Dec-08 2:05 
GeneralRe: Limiting the number of lines in a TextBox Pin
Dewald10-Dec-08 2:23
Dewald10-Dec-08 2:23 
GeneralRe: Limiting the number of lines in a TextBox Pin
Luc Pattyn10-Dec-08 2:28
sitebuilderLuc Pattyn10-Dec-08 2:28 
QuestionC# windows form data grid view issue Pin
AndieDu10-Dec-08 0:59
AndieDu10-Dec-08 0:59 
AnswerRe: C# windows form data grid view issue Pin
SeMartens10-Dec-08 3:12
SeMartens10-Dec-08 3:12 
GeneralRe: C# windows form data grid view issue Pin
AndieDu10-Dec-08 12:42
AndieDu10-Dec-08 12:42 
GeneralRe: C# windows form data grid view issue Pin
SeMartens10-Dec-08 21:14
SeMartens10-Dec-08 21:14 
QuestionDisplay file and folders from computer in treeview with checkbox Pin
kavitaBC9-Dec-08 23:31
kavitaBC9-Dec-08 23:31 
AnswerRe: Display file and folders from computer in treeview with checkbox Pin
N a v a n e e t h9-Dec-08 23:35
N a v a n e e t h9-Dec-08 23:35 
AnswerRe: Display file and folders from computer in treeview with checkbox Pin
Teuz9-Dec-08 23:42
Teuz9-Dec-08 23:42 
QuestionFocus of listview on Vista Pin
Teuz9-Dec-08 23:12
Teuz9-Dec-08 23:12 
QuestionChange a property with strings Pin
softwarejaeger9-Dec-08 22:45
softwarejaeger9-Dec-08 22:45 
AnswerRe: Change a property with strings Pin
Mirko19809-Dec-08 22:59
Mirko19809-Dec-08 22:59 
GeneralRe: Change a property with strings Pin
softwarejaeger9-Dec-08 23:37
softwarejaeger9-Dec-08 23:37 
GeneralRe: Change a property with strings Pin
Mirko19809-Dec-08 23:49
Mirko19809-Dec-08 23:49 

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.