Click here to Skip to main content
15,888,325 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Adding a button to a form Pin
Ray Cassick12-Dec-05 10:23
Ray Cassick12-Dec-05 10:23 
QuestionShowing an image Pin
Yevgeny Efter11-Dec-05 6:49
Yevgeny Efter11-Dec-05 6:49 
AnswerRe: Showing an image Pin
Dave Kreskowiak11-Dec-05 13:46
mveDave Kreskowiak11-Dec-05 13:46 
AnswerRe: Showing an image Pin
Saksida Bojan11-Dec-05 20:50
Saksida Bojan11-Dec-05 20:50 
QuestionGetting UserControls to show up in the Toolbox? Pin
dxben10-Dec-05 22:02
dxben10-Dec-05 22:02 
AnswerRe: Getting UserControls to show up in the Toolbox? Pin
Yuvi Panda10-Dec-05 23:29
Yuvi Panda10-Dec-05 23:29 
QuestionSize of a Folder Pin
Yuvi Panda10-Dec-05 21:50
Yuvi Panda10-Dec-05 21:50 
AnswerRe: Size of a Folder Pin
rob tillaart10-Dec-05 23:20
rob tillaart10-Dec-05 23:20 
The directory/folder structure itself is recursive and as far as I know there is no such information stored in any folder. Technically it could be done but if a file changes one should update this information of all the parent folders and that could make it quite expensive.

You could a tree structure containing this size information yourself and have it kept up to date by means of a service. Then you only need to ask that service for the size and you would have the answer immediately. But this is far more complex than the recursive algorithm. A unwanted side effect is that such service would take up CPU time and probably would decrease the performance of your disks. Do you have any requirement that ask for instantanious information?

If you just want to avoid recursion you could make an iterative directory walking algorithm but that would imply you should keep track on a stack where you have been. It might be a bit faster but it is harder to code.

regards,
rob tillaart




NewsRe: Size of a Folder Pin
Yuvi Panda10-Dec-05 23:28
Yuvi Panda10-Dec-05 23:28 
GeneralRe: Size of a Folder Pin
Yuvi Panda10-Dec-05 23:58
Yuvi Panda10-Dec-05 23:58 
GeneralRe: Size of a Folder Pin
rob tillaart11-Dec-05 0:15
rob tillaart11-Dec-05 0:15 
GeneralRe: Size of a Folder Pin
Yuvi Panda11-Dec-05 0:22
Yuvi Panda11-Dec-05 0:22 
QuestionRunning an external exe Pin
Yevgeny Efter10-Dec-05 3:28
Yevgeny Efter10-Dec-05 3:28 
AnswerRe: Running an external exe Pin
rob tillaart10-Dec-05 4:37
rob tillaart10-Dec-05 4:37 
AnswerRe: Running an external exe Pin
enjoycrack10-Dec-05 15:49
enjoycrack10-Dec-05 15:49 
QuestionWin32 Services and Remoting is this avalaible? Pin
Dmitry_Shalin9-Dec-05 19:50
Dmitry_Shalin9-Dec-05 19:50 
QuestionRichTextBox - Sending "zoomed" output to bitmap Pin
FinallyInSeattle9-Dec-05 6:26
FinallyInSeattle9-Dec-05 6:26 
QuestionDotted line and Paint Bucket tool (Winforms) Pin
TheDen8-Dec-05 21:52
TheDen8-Dec-05 21:52 
QuestionCan windows application like c#.net be implemented using MVC Architecture Pin
sarayumadhavan8-Dec-05 19:57
sarayumadhavan8-Dec-05 19:57 
AnswerRe: Can windows application like c#.net be implemented using MVC Architecture Pin
Dave Kreskowiak9-Dec-05 5:52
mveDave Kreskowiak9-Dec-05 5:52 
AnswerRe: Can windows application like c#.net be implemented using MVC Architecture Pin
kennster20-Dec-05 6:51
kennster20-Dec-05 6:51 
Questionmfc42ud.lib in VS.Net 2005 C++ Pin
Lythimer8-Dec-05 4:43
Lythimer8-Dec-05 4:43 
AnswerRe: mfc42ud.lib in VS.Net 2005 C++ Pin
Saksida Bojan11-Dec-05 20:58
Saksida Bojan11-Dec-05 20:58 
Questionuser in computer Pin
sebastianos7-Dec-05 9:35
sebastianos7-Dec-05 9:35 
AnswerRe: user in computer Pin
MarcelErz12-Dec-05 5:37
MarcelErz12-Dec-05 5:37 

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.