I know that the CommonDialog exists... but here's a similar one:
http://www.vbforums.com/attachment.p...postid=1153305
I've resized the form (it's resizable) so that it can be seen most of the nodes.
Printable View
I know that the CommonDialog exists... but here's a similar one:
http://www.vbforums.com/attachment.p...postid=1153305
I've resized the form (it's resizable) so that it can be seen most of the nodes.
Ok... here's the sample (and OCX)
Anyway... before anyone points this out, I'll do it myself. It has a dependency. It needs Microsoft Windows Common Controls 6 (because of the TreeView and ImageList)
Why don't you use CommonDialog API's instead of OCX?
Because I saw that form in other thread, and since I was bored I decided to give it object modularity. Then I decided to compile it as an OCX. Besides, like I said: "I know that the CommonDialog exists..."
I've changed a few things... if anyone is interested, ask for it.
I'm interested. So I'll ask for it. :) Can I have it? :D
It'd be cool if you added some of the common folders like My Documents, My Pictures, and maybe My Network Places to it. Could save a user some fumbling about.
Here it is. And I've already thought about the special folders. But, since I have to analyze other's person code (all the TreeView Population is not mine).... that might take a while.
Anyway... I don't think anyone should use it as a control (because you should include this OCX and Microsoft Windows Common Controls). You can use the code itself and get rid of the OCX.
I was planning on trying to use it in a program where I already use the Windows Common Controls. :)Quote:
Originally posted by Mc Brain
Here it is. And I've already thought about the special folders. But, since I have to analyze other's person code (all the TreeView Population is not mine).... that might take a while.
Anyway... I don't think anyone should use it as a control (because you should include this OCX and Microsoft Windows Common Controls). You can use the code itself and get rid of the OCX.
That's the idea. :)Quote:
Originally posted by MidgetsBro
I was planning on trying to use it in a program where I already use the Windows Common Controls. :)
Anyway... I'm experiencing the same problem as when creating and deleting folders in W2K. Sometimes, the folder gets locked... and you cannot deleted it. You need to restart the machine.... and when you restart you realized that the folder was deleted, but the explorer wasn't updated. So it seemed like the folder was there, but it wasn't. So, when you try to delete it you can't... because the folder doesn't exist.
I always have that problem with files and folders in 2000. My Quick Launch Bar especially. When I install a new program that puts an icon there, it leaves the old one there, but when I try to delete the old one, it says Access Denied. I found out if I close the QL bar and reopen it, it will refresh the icons and get rid of the one that doesn't exist.Quote:
Originally posted by Mc Brain
Anyway... I'm experiencing the same problem as when creating and deleting folders in W2K. Sometimes, the folder gets locked... and you cannot deleted it. You need to restart the machine.... and when you restart you realized that the folder was deleted, but the explorer wasn't updated. So it seemed like the folder was there, but it wasn't. So, when you try to delete it you can't... because the folder doesn't exist.
Killing explorer.exe and re-running it, also fix the problem. (But I had to delete the folders manually.... but didn't raise an error) I'm wondering when they will fix that bug.Quote:
Originally posted by MidgetsBro
I always have that problem with files and folders in 2000. My Quick Launch Bar especially. When I install a new program that puts an icon there, it leaves the old one there, but when I try to delete the old one, it says Access Denied. I found out if I close the QL bar and reopen it, it will refresh the icons and get rid of the one that doesn't exist.
Last Release....
How is it looking??
http://www.vbforums.com/attachment.p...postid=1156876
looks splendid :p .
but really. nice job.
What else could "we" need if we wanted to avoid "Common Dialog"??
well... you could extract the shell icons at runtime so it looks better on different oses, and it wouldn't hurt to add a right clik menu....
The icons are loaded in runtime. The ones I've no idea how to extract are the LNKs. I'm working on the properties....Quote:
Originally posted by BuggyProgrammer
well... you could extract the shell icons at runtime so it looks better on different oses, and it wouldn't hurt to add a right clik menu....
Now with properties.... :)
Man, I need a life!! ;)
Just in case you didn't understand. I'm extracting the default icon (from the registry) and loading it into the ListView. I can't load some EXE icons... don't have a clue why. :(Quote:
Originally posted by Mc Brain
The icons are loaded in runtime. The ones I've no idea how to extract are the LNKs. I'm working on the properties....
Mc Brain, you saved me a lot of time trying to figure out how do create something like this. I was having so much trouble loading the treeview!!
Thank you very much.
I'm glad I could help, but the TreeView-loading code is not mine. I just upgraded some code I found, and made it an usercontrol.Quote:
Originally posted by aoeBombcat
Mc Brain, you saved me a lot of time trying to figure out how do create something like this. I was having so much trouble loading the treeview!!
Thank you very much.
I am a beginner in VB, and I was trying to create something exactly like what you create as a beginner project. But I was having so much trouble loading the treeview with the folder information, I spend 2 days on it (around 8 hours) but I still can not get past the first 2 sub nodes....... At least now I have the solution to study what went wrong.
Thanks
Oh, by any chance do you have any good beginner book that you would recommand? I already have the beginning VB.net 2nd Ed book, but it is not helping.
I think I need a book that can tell me what all the object does, what methods they have and what they are for. I have been doing C++ for a few years, so I know how to program.
Is there such a book?
Thank you again
Srry, I don't know. I "raised" myself with tutorials and stuff I found online. Probably, someone on the forums might give you a nice tip about any good book. Good luck.Quote:
Originally posted by aoeBombcat
... Oh, by any chance do you have any good beginner book that you would recommand? I already have the beginning VB.net 2nd Ed book, but it is not helping.
I think I need a book that can tell me what all the object does, what methods they have and what they are for. I have been doing C++ for a few years, so I know how to program.
Is there such a book?
Thank you again
Wow, you learn all these from the web and tutorials!! I need to hang out here more. Thanks
In response to what a user asked... here's a new version which lets you set the CheckBoxes property to true, so that the user can select more than one folder.
The control is excellent. I am wondering, (I hope this is not too much to ask), can the control stay visible at all times so users can select and deselect folders in real time?
You might try another control instead.Quote:
Originally posted by baja_yu
The control is excellent. I am wondering, (I hope this is not too much to ask), can the control stay visible at all times so users can select and deselect folders in real time?