Home All Groups Group Topic Archive Search About

Change OpenFileDialog Size (width and height)

Author
14 Sep 2006 11:08 AM
Jason
Hi,

I am developing .NET 1.1 desktop application, I want to pop up a
OpenFileDialog that has a large Width and Height.

However, there is no accessible OpenFileDialog.Width and
OpenFileDialog.Height or OpenFileDialog.Size to set. So how to change the
size of the dialog once it is poped up?

Thanks,
Jason

Author
14 Sep 2006 2:11 PM
Chris Dunaway
Jason wrote:
> Hi,
>
> I am developing .NET 1.1 desktop application, I want to pop up a
> OpenFileDialog that has a large Width and Height.
>
> However, there is no accessible OpenFileDialog.Width and
> OpenFileDialog.Height or OpenFileDialog.Size to set. So how to change the
> size of the dialog once it is poped up?

The OpenFileDialog internally calls the GetOpenFileName API.  The docs
for that API seem to indicate that sizing the dialog is not supported.

If you need to have it sizeable, you may have to roll your own.

I looked around on Google and could not find a re-sizeable dialog.
Author
14 Sep 2006 2:13 PM
Chris Dunaway
Jason wrote:
> Hi,
>
> I am developing .NET 1.1 desktop application, I want to pop up a
> OpenFileDialog that has a large Width and Height.
>
> However, there is no accessible OpenFileDialog.Width and
> OpenFileDialog.Height or OpenFileDialog.Size to set. So how to change the
> size of the dialog once it is poped up?
>
> Thanks,
> Jason

The open file dialog is sizeable, but the user must size it themselves.
Author
18 Sep 2006 6:42 AM
TechSupport
Hi,

You can resize your Open/Save dialogs using our Dialog Workshop .NET.
Our powerful Open/Save dialogs allows you to specify initial dilaog
size and position, dock your own Windows Forms to the original dialog
window, etc.

Please visit http://www.componentage.com for details.

Best regards,
Alex Petrov
COMPONENTAGE Software

Show quoteHide quote
> Jason wrote:
> Hi,
>
> I am developing .NET 1.1 desktop application, I want to pop up a
> OpenFileDialog that has a large Width and Height.
>
> However, there is no accessible OpenFileDialog.Width and
> OpenFileDialog.Height or OpenFileDialog.Size to set. So how to change the
> size of the dialog once it is poped up?
>
> Thanks,
> Jason