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

Extending a File Dialog

I'm looking to implement a Standard File Open Dialog, and put a little File
Preview segment onto the dialog. Unfortunately it's not as straightforward
as just inheriting a regular file open dialog and adding the bits I need.

Does anyone know of any easy way to achieve what I'm looking for? Or will it
be a case of me having to write a whole new dialog from scratch?

Many thanks

Stuart
Nov 16 '05 #1
2 3806
Hi,

IIRC OpenFileDialog is declared as sealed, therefore you cannot extend it,
now I do remember reading some article ( I found it );
http://msdn.microsoft.com/msdnmag/is...e/default.aspx
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Stuart" <NO*****@NO-SPAM.com> wrote in message
news:ql*****************@text.news.blueyonder.co.u k...
I'm looking to implement a Standard File Open Dialog, and put a little
File
Preview segment onto the dialog. Unfortunately it's not as straightforward
as just inheriting a regular file open dialog and adding the bits I need.

Does anyone know of any easy way to achieve what I'm looking for? Or will
it
be a case of me having to write a whole new dialog from scratch?

Many thanks

Stuart

Nov 16 '05 #2
In article <ql*****************@text.news.blueyonder.co.uk> , Stuart wrote:
I'm looking to implement a Standard File Open Dialog, and put a little File
Preview segment onto the dialog. Unfortunately it's not as straightforward
as just inheriting a regular file open dialog and adding the bits I need.

Does anyone know of any easy way to achieve what I'm looking for? Or will it
be a case of me having to write a whole new dialog from scratch?

Many thanks

Stuart


Stuart... Can't you make use of the various Protected methods - such as
HookProc and especially OwnerWndProc?

--
Tom Shelton [MVP]
OS Name: Microsoft Windows XP Professional
OS Version: 5.1.2600 Service Pack 2 Build 2600
System Up Time: 13 Days, 20 Hours, 26 Minutes, 22 Seconds
Nov 16 '05 #3

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

Similar topics

2
by: William Gill | last post by:
I have created a widget that extends Frame() and contains labels, checkboxes, and entrys. I am trying to use tkSimpleDialog.Dialog to create a modal display of this widget, but am running into...
1
by: John | last post by:
Hello, Is it possible to modify the print dialog box that appears when a user clicks File->Print? Is it possible to make this modification so that all Windows programs use the modified print...
4
by: rajendra | last post by:
how to extend existing windows forms control like if i want to add new add method to combo box ,how to go abt. it? can anyone help me abt. this
3
by: Michael A. Covington | last post by:
How easy is it to extend OpenFileDialog so that when a file is selected (clicked), my code will be called to extract some information from the file and display a picture?
0
by: abramson.uri | last post by:
hi! ive implemented multiple node selection in a tree view - derived class. all goes well untill i open a file dialog through the nodes context menu and somehow, the multiple selection...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
3
by: katis | last post by:
Hi all :) Is it posible in xsd to change only minOccurs value of element in complex type by extending this type? The problem I'm trying to solve is this: I have two complex types -...
3
by: ArmageddonAsh | last post by:
I'm trying to make an application that will allow the user to enter data into a flexgrid (that's done) and then save the data from that flexgrid into a CSV file but even though the file is made none...
2
by: WP | last post by:
Hello, I making and Windows Forms program and I have a dialog with two buttons. I have set the DialogResult property for these buttons to DialogResult.OK and DialogResult.No, respectively (however,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.