Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can anybody help me in below code Pin
indian1435-Feb-10 13:35
indian1435-Feb-10 13:35 
AnswerRe: Can anybody help me in below code Pin
Jimmanuel5-Feb-10 14:42
Jimmanuel5-Feb-10 14:42 
AnswerRe: Can anybody help me in below code Pin
Not Active5-Feb-10 15:49
mentorNot Active5-Feb-10 15:49 
QuestionCreating a custom BindingNavigator which include a BindingSource Pin
ArjenGroeneveld5-Feb-10 11:07
ArjenGroeneveld5-Feb-10 11:07 
AnswerRe: Creating a custom BindingNavigator which include a BindingSource Pin
ArjenGroeneveld7-Feb-10 6:09
ArjenGroeneveld7-Feb-10 6:09 
QuestionFastest Method for opening many text files... Pin
UFGrayMatter5-Feb-10 10:43
UFGrayMatter5-Feb-10 10:43 
AnswerRe: Fastest Method for opening many text files... Pin
Keith Barrow5-Feb-10 11:10
professionalKeith Barrow5-Feb-10 11:10 
AnswerRe: Fastest Method for opening many text files... Pin
Luc Pattyn5-Feb-10 11:17
sitebuilderLuc Pattyn5-Feb-10 11:17 
Hi,

1.
File.ReadAllText() does it all in one line.

2.
if the files are large, you may be stressing the memory, possibly without a real necessity. Do you really need all the data of a file in memory at once? or is a sequential read sufficient?

3.
for small files, and assuming the processing is individual without too much common data, use a few threads (no more than 2*Ennvironment.ProcessorCount).
Note: if your processing needs GUI access, you must avoid invalid cross-thread operations[^]
Warning: if you take them from ThreadPool it will take a few seconds before they are all active.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]


QuestionHow can I get the selected value from a combo box Pin
tonyonlinux5-Feb-10 10:06
tonyonlinux5-Feb-10 10:06 
AnswerRe: How can I get the selected value from a combo box Pin
Not Active5-Feb-10 10:16
mentorNot Active5-Feb-10 10:16 
GeneralRe: How can I get the selected value from a combo box Pin
tonyonlinux5-Feb-10 10:19
tonyonlinux5-Feb-10 10:19 
AnswerRe: How can I get the selected value from a combo box Pin
Luc Pattyn5-Feb-10 11:23
sitebuilderLuc Pattyn5-Feb-10 11:23 
GeneralRe: How can I get the selected value from a combo box Pin
tonyonlinux5-Feb-10 12:52
tonyonlinux5-Feb-10 12:52 
GeneralRe: How can I get the selected value from a combo box Pin
Luc Pattyn5-Feb-10 12:58
sitebuilderLuc Pattyn5-Feb-10 12:58 
QuestionHow does the method work ? Pin
Mohammad Dayyan5-Feb-10 9:02
Mohammad Dayyan5-Feb-10 9:02 
AnswerRe: How does the method work ? Pin
Steve Westbrook5-Feb-10 9:08
Steve Westbrook5-Feb-10 9:08 
GeneralRe: How does the method work ? Pin
Mohammad Dayyan5-Feb-10 9:14
Mohammad Dayyan5-Feb-10 9:14 
AnswerRe: How does the method work ? Pin
Luc Pattyn5-Feb-10 9:23
sitebuilderLuc Pattyn5-Feb-10 9:23 
GeneralRe: How does the method work ? Pin
Mohammad Dayyan5-Feb-10 9:27
Mohammad Dayyan5-Feb-10 9:27 
GeneralRe: How does the method work ? Pin
Mohammad Dayyan5-Feb-10 9:35
Mohammad Dayyan5-Feb-10 9:35 
AnswerRe: How does the method work ? Pin
Luc Pattyn5-Feb-10 10:02
sitebuilderLuc Pattyn5-Feb-10 10:02 
GeneralRe: How does the method work ? Pin
Mohammad Dayyan5-Feb-10 10:10
Mohammad Dayyan5-Feb-10 10:10 
AnswerRe: How does the method work ? Pin
Pete O'Hanlon5-Feb-10 10:04
mvePete O'Hanlon5-Feb-10 10:04 
GeneralRe: How does the method work ? Pin
Mohammad Dayyan5-Feb-10 10:09
Mohammad Dayyan5-Feb-10 10:09 
QuestionApplication updates Pin
Jeroen De Dauw5-Feb-10 8:47
Jeroen De Dauw5-Feb-10 8:47 

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.