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.
 
Back
Top