Solved

FolderBrowserDialog Resize

Posted on 2012-03-18
1
1,635 Views
Last Modified: 2012-03-28
Is it possible to change the size of FolderBrowserDialog object, rather then the user requiring to resize the box (default size is too small).
0
Comment
Question by:Cmitch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 53

Accepted Solution

by:
Dhaest earned 300 total points
ID: 37736929
you cannot resize the FileDialog in .Net directly.

There is a protected method 'HookProc' in all dialogs. This method provides you access to dialog creation process. But the OpenFileDialog is sealed. So you will not be able to use it directly. You need to use windows API's that support this method. I found this link...
http://www.codeproject.com/KB/cs/getsavefilename.aspx?display=Print

Another relatively easy solution you can find at:
(Customizing OpenFileDialog in .NET)
http://www.codeproject.com/KB/dialog/OpenFileDialogEx.aspx

CommonDialog.HookProc Method
http://msdn.microsoft.com/en-us/library/system.windows.forms.commondialog.hookproc.aspx
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question