Solved

FolderBrowserDialog Resize

Posted on 2012-03-18
1
1,390 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
A short film showing how OnPage and Connectwise integration works.

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now