Solved

FolderBrowserDialog Resize

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

23 Experts available now in Live!

Get 1:1 Help Now