|
Hi,
i have a folder view which list all my folders in a tree view form. My requirement is, after selecting a folder if i send a delete command it has to delete all folders and its contents. Problem is only after deleting the files in the subfolders,i can delete the folder. i need to do an recursive search. Urgent.... plzzzzzzzz reply. I am using c# windows application.
e.g
1
11
12
121
122
13
say my tree view looks like this... if i delete the folder 1. it should find out all the subfolders. Should delete 13 first and 122 and then 121 and 12 and 11.
plzzzzzzz do guide me... Thanks in advance...
|
|
|
|
|
private void DeleteStuff(TreeNode root) {
foreach (TreeNode tn in root.Nodes) {
DeleteStuff(tn);
}
}
Try code model generation tools at BoneSoft.com.
|
|
|
|
|
hi i did but then its not working properly..... if i select a node. the rootnode.nodes property is not taking the subfolders of the child node....
1
11
12
13
131
132
14
in the above the 131 and 132 nodes are not accecible.... they r not coming under the collectios..... plzzzzzzzz help me..
thanks a lot in advance......cheers.
|
|
|
|
|
If you use the method above, and pass it node '13', it will process '131' and '132' before doing 13. You're not using the treeView.Nodes are you?
What ever owns the 1, 11, 12, 13 & 14 nodes (treeView or another node) won't have 131 and 132 in it's Nodes collection, node 13 will. A TreeNode object has a Nodes colleciton just as TreeView does. That's why the method above accepts a TreeNode , and pocesses it's children before itself.
Maybe I don't fully understand you question.
Try code model generation tools at BoneSoft.com.
|
|
|
|
|
Hello,
I am using standard OpenFileDialog window. Is there a way to suppress (disable) the New Folder button, so that the user does not have the ability to create new folders?
Thank you.
|
|
|
|
|
I don't see a 'New Folder' button in the OpenFileDialog, so i can't help you there. But if you are using the FolderBrowserDialog, set the ShowNewFolderButton property to false.
Josh
|
|
|
|
|
|
hi all, when i try to set the value to html file field it display error message like "The value property on HtmlInputFile is not settable",how to solve this prob..is there any way to do this..
Regards,
ayyp
|
|
|
|
|
There is no problem - that is the intended behaviour and there is (rightfully) no way to overcome it.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
is there any other way to do this...i need to save the file(which r given in the htmlfilefield ) after postback happened...
Regards,
ayyp
|
|
|
|
|
When MS release .Net 3.0 and C# 3.0, will these be compatible with VS 2005, does anyone know? I've only just stumped up the cash for VS, and I'm looking forwards to having to stump up even more!
Cheers,
Utini.
|
|
|
|
|
|
1.1 was not compatible with VS.NET, 2.0 is not compatible with 2003, I don't think 3.0 will be compatible with 2005 .
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
It currently is compatible with VS2005. Keep in mind that .NET 3.0 is just a marketing term. It really uses .NET 2.0 - but has tons of extra classes added in.
|
|
|
|
|
Josh Smith wrote: It really uses .NET 2.0
Kind of true. It uses the 2.0 CLR (unlike the .NET 1.1 to 2.0 transition, no CLR changes are required this time around). However, it does use a new .NET framework base class library that is superset of of what's currently available.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Goof around music jam with my brothers (with video)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Do you know if MS is going to increment the assembly versions from 2.0 to 3.0? I certainly hope so, otherwise it will be very confusing.
Josh
|
|
|
|
|
|
But you'll still be able to use it from VS 2005. That's the point, albeit with add-ins or whatever.
Kevin
|
|
|
|
|
Can we be so sure though? There's already a C# 3.0 spec out there with all of the LINQ stuff integrated. Wouldn't it make sense to put C# 3.0 into .Net 3.0?
Logifusion[^]
|
|
|
|
|
C# 3 will be released post-.NET 3. This has been stated several times by the Microsoft folks. .NET 3 will be released with Vista (i.e., in a few months). C# 3 and VB9 will ship with Visual Studio codename Orcas, which will be released some time after Vista is released.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Goof around music jam with my brothers (with video)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Damn. I was hoping to get my hands on that ObjectSpaces stuff and LINQ.
Logifusion[^]
|
|
|
|
|
|
Well, names change all the time. Now it's the object services, which is part of the ADO.NET entity framework. Means basically the same thing to me though: an ORM that's built into the framework instead of as a 3rd party tool.
Logifusion[^]
|
|
|
|
|
Is that right? I know you can use the ".NET 3" beta with the WinFX/.NET 3 extensions for VS2005, but I wasn't sure if they'd still allow that for 2005 or if they'd induce us to upgrade. It would be nice if the release schedule of .NET 3 wasn't tied to a VS release, which usually is delayed.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Goof around music jam with my brothers (with video)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Considering how long it took for VS2005 to hit the market, I would be shocked to death if MS somehow was able to pull VS2006 out of their arse by the time Vista is officially released. This leads me to believe that .NET 3.0 will run in VS2005.
josh
|
|
|
|