Results 1 to 3 of 3

Thread: Resize Folder Browser Dialog

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    8

    Resize Folder Browser Dialog

    I have an app that displays a folder browser dialog. Before displaying it I would like to set its size but I cannot find any methods or attribute that will allow me to do so, either in the object itself or any class that it inherits from.
    But I'm new to vb.net and the whole .net framework, so I might be missing something.

    The only solution I can think of is to use the SetWindowPos windows function. Before I go down that road, can anyone verify that it is not otherwise possible to programmatically resize the dialog?

    If it's not possible, then in vb.net to use a windows library method, do I declare it like this:
    Code:
    Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
    and use it, or does .net offer another way to access the windows library?

    Thanks. I hope all this made sense.

  2. #2
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,950

    Re: Resize Folder Browser Dialog

    See here http://www.tech-archive.net/Archive/.../msg00060.html

    This is C# Project but might get you going. The attachment is actually a zip file containing the project.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    8

    Re: Resize Folder Browser Dialog

    Hi bulldog,

    I'll take a look.

    thanks and regards

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