Login required to post messages or search forums!
Hi...
I need to use the OpenFileDialog component in my application. Because this is called from code, is there anyway that I can code your resizer to appropriately resize this component when displayed? Or do I need to create my own OpenFileDialog form and add the resizer component to it?
Thanks
Steve
Hello,
OpenFileDialog inherits indirectly from the Component class. WinFormResizer will only resize objects that inherit direclty or indirectly from the Control class eg. Form, Button etc. The Control class is the only class that has the appropriate properties to allow for resizing.
If you need resizability in your Open File Dialog then you might want to consider implementing OpenFileDialog's functionality in a new Form and adding WinFormResizer to this form. As a starting point you could take a look at Casper Boekhoudt's 2002 article "Custom FileDialog" at:
http://www.c-sharpcorner.com/Code/2002/Feb/FileDialogCB.asp
Regards,
Fengari Software Support