 |
|
 |
Not able to see Entire Network in My Network Places
:->
also the same authentication issues when trying to access my network places
remane rushikesh
|
|
|
|
 |
|
 |
The control works fine, if I compile in VS2005 (SP1) on Windows XP and use the resulting .exe in XP. If I compile on VS 2005 (SP1 + Vista patch) on Windows Vista, then deploy to a Windows XP machine, I get the following error loading the control:
It's in German, the text in English would be:
"The COM-Object "Shell32.ShellClass" cannot be transformed in the interface type "Shell32.IShellDispatch5" ..."
----snipp----
System.InvalidCastException: Das COM-Objekt des Typs "Shell32.ShellClass" kann nicht in den Schnittstellentyp "Shell32.IShellDispatch5" umgewandelt werden. Dieser Vorgang konnte nicht durchgeführt werden, da der QueryInterface-Aufruf an die COM-Komponente für die Schnittstelle mit der IID "{866738B9-6CF2-4DE8-8767-F794EBE74F4E}" aufgrund des folgenden Fehlers nicht durchgeführt werden konnte: Schnittstelle nicht unterstützt (Ausnahme von HRESULT: 0x80004002 (E_NOINTERFACE)).
bei Shell32.ShellClass.NameSpace(Object vDir)
bei Furty.Windows.Forms.ShellOperations.AddRootNode(TreeView tree, Int32& imageCount, ImageList imageList, ShellFolder shellFolder, Boolean getIcons)
bei Furty.Windows.Forms.ShellOperations.PopulateTree(TreeView tree, ImageList imageList)
bei Furty.Windows.Forms.FolderTreeView.InitFolderTreeView()
----snipp----
I even tried to reference the original XP shell32.dll. Doing so, I get this error:
System.Runtime.InteropServices.COMException (0x8007007F): Die COM-Klassenfactory für die Komponente mit CLSID {13709620-C279-11CE-A49E-444553540000} konnte aufgrund des folgenden Fehlers nicht abgerufen werden: 8007007f.
bei Furty.Windows.Forms.ShellOperations.AddRootNode(TreeView tree, Int32& imageCount, ImageList imageList, ShellFolder shellFolder, Boolean getIcons)
bei Furty.Windows.Forms.ShellOperations.PopulateTree(TreeView tree, ImageList imageList)
bei Furty.Windows.Forms.FolderTreeView.InitFolderTreeView()
|
|
|
|
 |
|
 |
I have the same issue, did you ever resolve this?
|
|
|
|
 |
|
 |
You folks are nutty in the head for developing on Vista.
|
|
|
|
 |
|
 |
maybe it's a part of the future? u ignorant!
|
|
|
|
 |
|
 |
Hi all!
How to make a not show the A: drive in tree?
Sorry for my english
Thanks!
|
|
|
|
 |
|
 |
Hello,
i am confused, everytime i use this control and click on the network folder icon on root, the programm tries to connect to the internet, the host is stopped by zonealarm, but why want it connect to it?
Once i let it connect and it presented me a logon for MS Live ID.
When i deny the connection, i get a "Windows live id connection error" message.
"Your request cant be send because the windows live id service is unavailable" where i can retry or abort, both leads me back to the message and my programms is trapped in that loop.
Has somebody an explanation for me?
|
|
|
|
 |
|
 |
Well a small addendum to it, i found some weird behaviour, because my notebook has one of those "my website on msn" links in my neighbourhood.
When i click on the network, the private static void CheckForSubDirs(..); iterates here
foreach(Shell32.FolderItem item in folder.Items()) and folder does only contain the link to msn but unfortunately the programm tries to connect to it because of folder.Items(); this seems to be an unpleasant behaviour.
Of course i can delete this link, and i will, but it looks like url shortcuts are processed through a connection
|
|
|
|
 |
|
 |
It looks like the majority of the processing time is done in ExpandBranch(). Is there anyway to change the cursor to an hourglass while this routine is processing?
Thanks. Great code.
John
|
|
|
|
 |
|
 |
Ok I've found out how to do this, modify the ExpandBranch() routine as follows:
public static void ExpandBranch(TreeNode tn, ImageList imageList)
{
// if there's a dummy node present, clear it and replace with actual contents
if(tn.Nodes.Count == 1 && tn.Nodes[0].Tag.ToString() == "DUMMYNODE")
{
Cursor.Current = Cursors.WaitCursor;
System.Windows.Forms.Application.DoEvents();
tn.Nodes.Clear();
Shell32.FolderItem folderItem = (Shell32.FolderItem)tn.Tag;
Shell32.Folder folder = (Shell32.Folder)folderItem.GetFolder;
int imageCount = imageList.Images.Count - 1;
foreach(Shell32.FolderItem item in folder.Items())
{
if(item.IsFileSystem && item.IsFolder && !item.IsBrowsable)
{
TreeNode ntn = AddTreeNode(item, ref imageCount, imageList, true);
tn.Nodes.Add(ntn);
CheckForSubDirs(ntn, imageList);
}
}
Cursor.Current = Cursors.Default;
}
}
That's it. Remember that you must use Cursor.Current not tn.TreeView.UseWaitCursor.
I hope this helps,
John
|
|
|
|
 |
|
 |
Thanks for this great Tree Control, it really made my work easier. However, I do not need the following nodes:
1)Network Neighbourhood or any recently accessed shared folder from any other system
2) Internet Explorer
and
3) Recycle Bin
To be displayed on the tree control?
Any help with this matter would be greatly appreciated.
Thanks once again.
|
|
|
|
 |
|
 |
Your FolderTreeView Control is great to start with for CSharp Beginners. Could you tell me when the Network Places node is clicked, the tree should display all computers in the network. ie
Network Places -> Entire Network
->Microsoft Windows Network
->Domain1
->Computer1
->Computer2
->Directory
Right now it shows all the recently accessed shared folders on different machines. Any Help would be appreciated
Thanks
|
|
|
|
 |
|
 |
I need the same functionality. I changed some things to get also all files in the TreeView but also then I can't finde the "Entire Network" directory! It would be great if someone got's an idea...
PS: THX 4 this realyKickAssNice Appl.
|
|
|
|
 |
|
 |
When running your exe everything is ok, but after compiling in Visual Studio 2005, instead of shadows under the icons I’ve black blot.
How to correct this?
|
|
|
|
 |
|
 |
Galanty wrote: When running your exe everything is ok, but after compiling in Visual Studio 2005, instead of shadows under the icons I’ve black blot.
How to correct this?
no it's not. browse this comments, there is a solution for that somewhere. basically this issue has something to do with visual styles.
penny
|
|
|
|
 |
|
 |
Ok, thx, I've missed them.
|
|
|
|
 |
|
 |
I also have this problem when compiling with VS2005.
Would you pls pay your attention to correct it?
|
|
|
|
 |
|
 |
Hello,
the control is really great. By testing it i saw that the DrillToFolder-function does not support unc-paths (for example \\neo\public\Test\). I wanted to fix this, but till now i have no clue how to do this.
Best regards
Tabor25
|
|
|
|
 |
|
 |
Thanks for the great code !
I have encountered a strange behaviour. The application (the original demo as well as my app where I want to include a folder tree) does not end. The process just remains in memory after the main form is closed.
After some debugging, I found out that the reason was "Sony Ericsson File Manager", which I have installed for managing the mobile phone. This installs a shell extension, which is displayed as system folder under "Desktop".
Knowing this, I changed the code to keep only MyComputer and NetworkNeighborhood system folders and "normal" folders under "Desktop", this is what I need anyway.
I just wanted to let you know that some not-so-well-written shell extensions may cause strange issues in apps using this code.
|
|
|
|
 |
|
 |
hi Liviu,
i've encountered the same problem, can you post your modified code here? it'll save me some time
thanks in advance
penny
|
|
|
|
 |
|
 |
Hello, I just need to have the hidden directory displayed. How can I Do This ?
Thx
|
|
|
|
 |
|
 |
Fantastic work, just what I was looking for and a lot for me to look through and learn from.
Thank you.
- Dy
|
|
|
|
 |
|
 |
i have some performance troubles using this wonderful control. when i open the "my computer" node the system lags for 5 seconds.
opening "network neighbourhood" causes a microsoft passport network login after one minute...
|
|
|
|
 |
|
 |
I have the same problem: opening my network neighbourhood is slow and asks a microsoft passport network login.
Any hints?
|
|
|
|
 |
|
 |
Furty,
I've just started doing a lot of C# .NET development and I noticed something in this project after downloading that was quite intriguing to me. You create a custom control called FolderTreeView which inherits from System.Windows.Forms.TreeView. This is great and so far nothing is a mystery. What IS a mystery to me, is that although you haven't created a seperate project and compiled this new control into a DLL, you somehow added it to the TestForm in Design view, yet I don't see how since it is not in the toolbox and there is no seperately compiled DLL for the FolderTreeView which I can add a reference to. How did you add your new control to the form visually? Thanks alot and keep up the great work.
|
|
|
|
 |