473,396 Members | 1,938 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,396 software developers and data experts.

Inheriting From FileDialog

Does anyone know of any sample code for inheriting from the FileDialog or
CommonDialog classes? I need to create a customized OpenFileDialog with
some additional combo boxes on it.

Thanks
Nov 16 '05 #1
4 6561
I see that FileDialog is sealed... Are there other options to implement a
custom OpenFileDialog by inherting from existing classes? CommonDialog or
OpenFileDialog itself maybe? I get the feeling I'm going to end up just
re-creating a Windows Form from scratch to do this...

Thanks,
Michael C#

"Michael C#" <xy*@abcdef.com> wrote in message
news:OJ************@fe08.lga...
Does anyone know of any sample code for inheriting from the FileDialog or
CommonDialog classes? I need to create a customized OpenFileDialog with
some additional combo boxes on it.

Thanks

Nov 16 '05 #2
There's no in-built support in .Net to customize your OpenFileDialog. But
you can use the Native APIs "GetOpenFileName" to display a custom file open
dialog based on a Template that you pass.

-vJ

"Michael C#" <xy*@abcdef.com> wrote in message
news:OJ************@fe08.lga...
Does anyone know of any sample code for inheriting from the FileDialog or
CommonDialog classes? I need to create a customized OpenFileDialog with
some additional combo boxes on it.

Thanks

Nov 16 '05 #3
Interesting. I actually want to display file info from another source,
apart from the local file system. I'll probably just end up re-inventing
the wheel for this project.

Thanks,
Michael C

"Vijaye Raji" <no************@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP10.phx.gbl...
There's no in-built support in .Net to customize your OpenFileDialog. But
you can use the Native APIs "GetOpenFileName" to display a custom file
open dialog based on a Template that you pass.

-vJ

"Michael C#" <xy*@abcdef.com> wrote in message
news:OJ************@fe08.lga...
Does anyone know of any sample code for inheriting from the FileDialog or
CommonDialog classes? I need to create a customized OpenFileDialog with
some additional combo boxes on it.

Thanks


Nov 16 '05 #4
You can try to use Dialog Workshop .NET. Please visit www.componentage.com

Sergey

"Michael C#" <xy*@abcdef.com> wrote in message
news:OJ************@fe08.lga...
Does anyone know of any sample code for inheriting from the FileDialog or
CommonDialog classes? I need to create a customized OpenFileDialog with
some additional combo boxes on it.

Thanks

Nov 16 '05 #5

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

Similar topics

4
by: ulysses | last post by:
Hi, I use PyQt 3.8 non-commercial version in win32. I get a big question. I Can't show PY variable in QT filedialog as initially parameter. Code sample is following:...
3
by: John Field | last post by:
Hello, Is it possible to exclude certain files in a wx.FileDialog, so that the user won't see them and can't select them with the mouse in de File open window? I was thinking of somehow...
2
by: SpotNet | last post by:
Hi Newsgroup, Reconstructing my common dialog assembly using C# 2.0 .NET Framework 2.0. I have the following; public class FileDialogBase: System.Windows.Forms.FileDialog { //No constructor...
1
by: Simon | last post by:
Does anyone have the definitive snippet of code for how to inherit from CommonDialog? I want to add an extra control into the OpenFileDialog. I know you cannot inherit from this or from...
2
by: zino | last post by:
I'm using the following code to get the file name and path, but after the user click the file, Excel open it. I don't want the Excel file to open, all I need is to get the file name that the user...
3
by: David Bib | last post by:
Although I'm relatively new to Access VBA, I've done a lot of macro programming in Excel VBA. The problem I'm having is that I get a 'User Type not defined' error at this line - Dim fd As...
3
blazedaces
by: blazedaces | last post by:
I've taken a look at the class and you only seem to be able to set the file name, but not it's save type. Why is this? Here's some code if you want it, but it doesn't seem to have a method for...
2
by: akmagnolia | last post by:
Hello- I am trying to use the FileDialog object to allow users to select a file. When I compile, I get the User type not defined error at the first DIM statement. My code is copied right out of the...
2
jamjar
by: jamjar | last post by:
I am trying to use the SaveAs type FileDialog to allow the user to enter a file name. It's only letting me choose exisiting files. Is there any way to use the FileDialog to allow the user to select...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.