Results 1 to 9 of 9

Thread: how can I select directories only with filedialog?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    how can I select directories only with filedialog?

    I dont want the user to see any files, and just to select directories from the file dialog
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    You cant. you have to use the API for that, but there is good news. The update for VS.NET (Everett) has a control just for that.
    Dont gain the world and lose your soul

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    You don't have to use the API. Here is one example of how to do it.
    http://www.planet-source-code.com/vb...=705&lngWId=10

  4. #4

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    tnx
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  5. #5
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    That example is indeed using the API.
    Dont gain the world and lose your soul

  6. #6
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    hmm, maybe I posted the wrong one then...I have an example that I ported from VB to C#, I don't remember any API calls....
    I will look for it.

  7. #7
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I knew I did one without the API. Check my posts on this thread. I included a zip file that has the code. It is in C# though, but there is a link in the same post as my code that goes to a planet source code version that is in VB.Net.
    http://www.vbforums.com/showthread.p...hreadid=207777

  8. #8
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    I found it. Good stuff.
    Dont gain the world and lose your soul

  9. #9

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    so basically Forms.Design.FolderNameEditor does everything? it sounds like that it doesnt use any of those comaptibility classes, right?


    btw I find the one with API's nicer, because it lets you to browse for network forlders as well, and it also shows the desktop content.
    Utility Library (I think that's what it's called....the one written in c#) has a very nice one too



    EDIT: never mind, it does show desktop/etc
    EDIT2: aaah cander made a part of that!!!
    Last edited by MrPolite; Nov 17th, 2002 at 02:26 PM.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

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