Custom save file dialog

  • Thread starter Thread starter Björn Lalin
  • Start date Start date
B

Björn Lalin

Does anyone know how to create a custom save/open file dialog?
What I need is to place a textfield on the dialog but it is not
possible by inheritance since the SaveFileDialog/OpenFileDialog
API classes are sealed.
Has anyone done this/knows how to do this? I would be very grateful
for some help or directions.

/Bjorn
 
Bjorn,

You can always create your own class that inherits from FileDialog and
then override the RunDialog and HookProc methods on the class so that your
control is added to the file dialog. It will require some calls to the
P/Invoke layer (possibly), but it is better than having to write it from
scratch.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top