Solved

FolderBrowserDialog Resize

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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