473,395 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Resizing a FolderBrowserDialog

Has anyone hacked a way to resize a FolderBrowserDialog and make it wider
than the default size?

Presumably, this could be done by supplying a HookBack delegate,
intercepting the INITDIALOG message, and doing the resizing and
repositioning then - but I'm quite foggy on how to do that.

Nov 17 '05 #1
3 5502
I think resizing/moving the window using the SetWindowPos API in
WM_INITDIALOG will work.

By default, the hook procedure centers the dialog box on the screen in
response to a WM_INITDIALOG message.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack For ActiveX & .Net - Windows Explorer Like Shell UI Controls


"Michael A. Covington" <lo**@ai.uga.edu.for.address> wrote in message
news:uu**************@TK2MSFTNGP15.phx.gbl...
Has anyone hacked a way to resize a FolderBrowserDialog and make it wider
than the default size?

Presumably, this could be done by supplying a HookBack delegate,
intercepting the INITDIALOG message, and doing the resizing and
repositioning then - but I'm quite foggy on how to do that.

Nov 17 '05 #2
I think resizing/moving the window using the SetWindowPos API in
WM_INITDIALOG will work.

By default, the hook procedure centers the dialog box on the screen in
response to a WM_INITDIALOG message.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack For ActiveX & .Net - Windows Explorer Like Shell UI Controls


"Michael A. Covington" <lo**@ai.uga.edu.for.address> wrote in message
news:uu**************@TK2MSFTNGP15.phx.gbl...
Has anyone hacked a way to resize a FolderBrowserDialog and make it wider
than the default size?

Presumably, this could be done by supplying a HookBack delegate,
intercepting the INITDIALOG message, and doing the resizing and
repositioning then - but I'm quite foggy on how to do that.

Nov 17 '05 #3
Thanks. Can somebody give me an example of how to use the HookProc property
of a common dialog box? What to do *within* the procedure isn't the
problem; I need to know how to set it up as a whole.

"Atul" <atulatsswaredotcom> wrote in message
news:uo**************@TK2MSFTNGP15.phx.gbl...
I think resizing/moving the window using the SetWindowPos API in
WM_INITDIALOG will work.

By default, the hook procedure centers the dialog box on the screen in
response to a WM_INITDIALOG message.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack For ActiveX & .Net - Windows Explorer Like Shell UI
Controls


"Michael A. Covington" <lo**@ai.uga.edu.for.address> wrote in message
news:uu**************@TK2MSFTNGP15.phx.gbl...
Has anyone hacked a way to resize a FolderBrowserDialog and make it wider
than the default size?

Presumably, this could be done by supplying a HookBack delegate,
intercepting the INITDIALOG message, and doing the resizing and
repositioning then - but I'm quite foggy on how to do that.


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anja | last post by:
I have installed the new Visual Studio 2003 and implemented the FolderBrowserDialog. Everything works fine, if I open the FolderBrowserDialog before opening a Database Connection. If I open...
25
by: | last post by:
Hi, The following code shows the FolderBrowserDialog = broken. FolderBrowserDialog folderDialog = new FolderBrowserDialog(); folderDialog.ShowNewFolderButton = false;...
1
by: alf | last post by:
Hi, I am using a FolderBrowserDialog to allow the user to select a folder as follows: FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog(); folderBrowserDialog1.RootFolder =...
9
by: hhh12347 | last post by:
FolderBrowserDialog crashes on my Windows 2000 computer. Here is a C# test program: using System; using System.Windows.Forms; public class TestForm : Form { FolderBrowserDialog...
0
by: Michael A. Covington | last post by:
Has anyone hacked a way to resize a FolderBrowserDialog and make it wider than the default size? Presumably, this could be done by supplying a HookBack delegate, intercepting the INITDIALOG...
0
by: Tommy Clark | last post by:
I am using Microsoft Development Environment 2003 Version 7.1.3088 and .NET Framework 1.1 Version 1.1.4322 SP1. I have an MFC application that we have ported to .NET and have added the...
6
by: John Krueger | last post by:
The FolderBrowserDialog control in my toolbox has vanished! I did not delibratly remove it and it is just not there anymore. I tried to add it back to the toolbox but there isn't even a .NET...
12
by: JohnR | last post by:
I have narrowed a problem down to a simple example. A form with two buttons. One EXIT and one FBD. The exit button does an "END" to end the application. The FBD button does a...
2
by: Marcel Brekelmans | last post by:
Hi, I'm trying to display a MessageBox after a FolderBrowserDialog. I see that it gets displayed, but not activated. The form is not in front and when I have some other forms open the MessageBox...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.