Click here to Skip to main content
16,011,611 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to Get the contents of a column of a list view Pin
AAGTHosting26-Feb-08 15:55
AAGTHosting26-Feb-08 15:55 
GeneralRe: How to Get the contents of a column of a list view Pin
AAGTHosting26-Feb-08 16:28
AAGTHosting26-Feb-08 16:28 
QuestionExit a funcion/sub Pin
mitsroff25-Feb-08 8:49
mitsroff25-Feb-08 8:49 
GeneralRe: Exit a funcion/sub Pin
Kschuler25-Feb-08 9:04
Kschuler25-Feb-08 9:04 
GeneralRe: Exit a funcion/sub Pin
mitsroff25-Feb-08 9:49
mitsroff25-Feb-08 9:49 
GeneralRe: Exit a funcion/sub Pin
Christian Graus25-Feb-08 9:53
protectorChristian Graus25-Feb-08 9:53 
GeneralRe: Exit a funcion/sub Pin
mitsroff25-Feb-08 9:58
mitsroff25-Feb-08 9:58 
GeneralRe: Exit a funcion/sub Pin
Dave Kreskowiak25-Feb-08 10:29
mveDave Kreskowiak25-Feb-08 10:29 
It does in your limited tests. Get a folder with a large number of files in it and your code will fall on its face. The button will not respond until the code returns control back to the UI to process events. This can take a while. For example, I've got 3 machines right now with over 13.5 MILLION files each in a small directory tree off the root of C:. It takes 45 minutes just to get properties on the root folder to see who much space is available.

Your use of a hidden TextBox is also very dependant on the UI being able to process and is very unnecessary. A simple Boolean variable would do the exact same thing without all the overhead of a control.

Moving the search to its own thread is a FAR better method leaving your UI responsive to every click of that button, no matter how many files there are in a folder.

On local hard drives, searches go pretty quick. When you doing the search on a remote volume over a network, these kind of searches take FAR longer, mostly hanging on remote I/O. The time your UI thread (in your implementation) is blocked (unresponsive to user actions) is FAR greater than for a search on a local drive.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: Exit a funcion/sub Pin
Ray Cassick25-Feb-08 12:21
Ray Cassick25-Feb-08 12:21 
GeneralRe: Exit a funcion/sub Pin
Luc Pattyn25-Feb-08 12:52
sitebuilderLuc Pattyn25-Feb-08 12:52 
GeneralClicking with a timer Pin
mykingdomforanewusername25-Feb-08 6:24
mykingdomforanewusername25-Feb-08 6:24 
GeneralRe: Clicking with a timer Pin
Smithers-Jones25-Feb-08 6:46
Smithers-Jones25-Feb-08 6:46 
GeneralRe: Clicking with a timer Pin
Paul Conrad25-Feb-08 8:46
professionalPaul Conrad25-Feb-08 8:46 
GeneralDrag and Drop during runtime Pin
Zaegra25-Feb-08 0:29
Zaegra25-Feb-08 0:29 
GeneralRe: Drag and Drop during runtime Pin
Smithers-Jones25-Feb-08 6:00
Smithers-Jones25-Feb-08 6:00 
GeneralProblem to pass Date parameter value to ReportViewer Pin
sonj25-Feb-08 0:14
sonj25-Feb-08 0:14 
AnswerRe: Problem to pass Date parameter value to ReportViewer Pin
sonj26-Feb-08 3:01
sonj26-Feb-08 3:01 
GeneralHelp with Return value Problem Pin
Vimalsoft(Pty) Ltd24-Feb-08 21:13
professionalVimalsoft(Pty) Ltd24-Feb-08 21:13 
GeneralRe: Help with Return value Problem Pin
Christian Graus24-Feb-08 21:30
protectorChristian Graus24-Feb-08 21:30 
GeneralRe: Help with Return value Problem Pin
Vimalsoft(Pty) Ltd24-Feb-08 22:03
professionalVimalsoft(Pty) Ltd24-Feb-08 22:03 
GeneralRe: Help with Return value Problem Pin
Christian Graus24-Feb-08 22:59
protectorChristian Graus24-Feb-08 22:59 
GeneralRe: Help with Return value Problem Pin
Vimalsoft(Pty) Ltd24-Feb-08 23:26
professionalVimalsoft(Pty) Ltd24-Feb-08 23:26 
GeneralRe: Help with Return value Problem Pin
J4amieC24-Feb-08 23:23
J4amieC24-Feb-08 23:23 
GeneralRe: Help with Return value Problem Pin
Christian Graus25-Feb-08 9:30
protectorChristian Graus25-Feb-08 9:30 
Questionhow to query pass to crystalreport using vb net Pin
Parvai24-Feb-08 21:07
Parvai24-Feb-08 21:07 

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.