Click here to Skip to main content
15,902,275 members
Home / Discussions / C#
   

C#

 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 2:06
electriac15-Jan-07 2:06 
GeneralRe: size of text array - limitations Pin
Pete O'Hanlon15-Jan-07 2:18
mvePete O'Hanlon15-Jan-07 2:18 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 2:47
electriac15-Jan-07 2:47 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 2:58
electriac15-Jan-07 2:58 
GeneralRe: size of text array - limitations Pin
Pete O'Hanlon15-Jan-07 3:07
mvePete O'Hanlon15-Jan-07 3:07 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 3:14
electriac15-Jan-07 3:14 
GeneralRe: size of text array - limitations Pin
Dan Neely15-Jan-07 3:23
Dan Neely15-Jan-07 3:23 
GeneralRe: size of text array - limitations Pin
J4amieC15-Jan-07 3:13
J4amieC15-Jan-07 3:13 
electriac wrote:
listBox1.Items.Add(f);


I can almost guarantee you this is the offending line, trying to add a huge number of items to a list box (or any UI element for that matter) will slow down to an almost stop. There is no absolute number where this will happen but a listbox slows down more and more as you ad items.

UI controls have a method SuspendLayout and ResumeLayout that will help with this problem, but you should really consider your UI design & useability if you are adding that many items to a listbox.






GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 3:19
electriac15-Jan-07 3:19 
GeneralRe: size of text array - limitations Pin
J4amieC15-Jan-07 3:34
J4amieC15-Jan-07 3:34 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 3:37
electriac15-Jan-07 3:37 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 3:34
electriac15-Jan-07 3:34 
GeneralRe: size of text array - limitations Pin
Pete O'Hanlon15-Jan-07 3:21
mvePete O'Hanlon15-Jan-07 3:21 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 3:44
electriac15-Jan-07 3:44 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 11:04
electriac15-Jan-07 11:04 
GeneralRe: size of text array - limitations Pin
Luc Pattyn15-Jan-07 3:55
sitebuilderLuc Pattyn15-Jan-07 3:55 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 4:47
electriac15-Jan-07 4:47 
GeneralRe: size of text array - limitations Pin
Luc Pattyn15-Jan-07 4:53
sitebuilderLuc Pattyn15-Jan-07 4:53 
GeneralRe: size of text array - limitations Pin
electriac15-Jan-07 5:02
electriac15-Jan-07 5:02 
AnswerRe: size of text array - limitations Pin
mihksoft15-Jan-07 20:57
mihksoft15-Jan-07 20:57 
GeneralRe: size of text array - limitations [modified] Pin
electriac15-Jan-07 21:09
electriac15-Jan-07 21:09 
QuestionAssigning the result of an SQL ExecuteScalar() to an int? Pin
Red_Wizard_Shot_The_Food15-Jan-07 1:42
Red_Wizard_Shot_The_Food15-Jan-07 1:42 
AnswerRe: Assigning the result of an SQL ExecuteScalar() to an int? Pin
Pete O'Hanlon15-Jan-07 1:57
mvePete O'Hanlon15-Jan-07 1:57 
GeneralRe: Assigning the result of an SQL ExecuteScalar() to an int? Pin
aSarafian15-Jan-07 2:30
aSarafian15-Jan-07 2:30 
GeneralRe: Assigning the result of an SQL ExecuteScalar() to an int? Pin
Colin Angus Mackay15-Jan-07 2:48
Colin Angus Mackay15-Jan-07 2:48 

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.