Results 1 to 30 of 30

Thread: Folder Selector - UserControl

  1. #1

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Folder Selector - UserControl

    I know that the CommonDialog exists... but here's a similar one:



    I've resized the form (it's resizable) so that it can be seen most of the nodes.
    Attached Images Attached Images  
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  2. #2

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Ok... here's the sample (and OCX)
    Attached Files Attached Files
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  3. #3

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    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)
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Why don't you use CommonDialog API's instead of OCX?

  5. #5

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    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..."
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  6. #6

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I've changed a few things... if anyone is interested, ask for it.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  7. #7
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    I'm interested. So I'll ask for it. Can I have it?
    <removed by admin>

  8. #8
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  9. #9

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    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.
    Attached Files Attached Files
    Last edited by Mc Brain; Sep 1st, 2002 at 05:49 PM.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  10. #10
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    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.
    I was planning on trying to use it in a program where I already use the Windows Common Controls.
    <removed by admin>

  11. #11

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by MidgetsBro
    I was planning on trying to use it in a program where I already use the Windows Common Controls.
    That's the idea.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  12. #12

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    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.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  13. #13
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    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.
    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.
    <removed by admin>

  14. #14

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    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.
    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.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  15. #15

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    v 1.0.2

    Last Release....
    Attached Files Attached Files
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  16. #16

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    How is it looking??

    Attached Images Attached Images  
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  17. #17
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    looks splendid .

    but really. nice job.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  18. #18

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    What else could "we" need if we wanted to avoid "Common Dialog"??
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  19. #19
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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....
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  20. #20

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    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....
    The icons are loaded in runtime. The ones I've no idea how to extract are the LNKs. I'm working on the properties....
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  21. #21

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    v 1.0.3

    Now with properties....

    Man, I need a life!!
    Attached Files Attached Files
    Last edited by Mc Brain; Sep 4th, 2002 at 12:48 AM.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  22. #22

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    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....
    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.
    Last edited by Mc Brain; Sep 4th, 2002 at 01:04 AM.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  23. #23
    New Member
    Join Date
    Aug 2004
    Posts
    4
    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.

  24. #24

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    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'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.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  25. #25
    New Member
    Join Date
    Aug 2004
    Posts
    4
    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

  26. #26

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    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
    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.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  27. #27
    New Member
    Join Date
    Aug 2004
    Posts
    4
    Wow, you learn all these from the web and tutorials!! I need to hang out here more. Thanks

  28. #28

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    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.
    Attached Files Attached Files
    Last edited by Mc Brain; Nov 15th, 2004 at 07:53 PM.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  29. #29
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989
    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?

  30. #30

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    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?
    You might try another control instead.
    Attached Files Attached Files
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width