5

Is there a way to do it?

Vince
  • 81
  • 1
  • 4
  • Difficult to imagine why would you like to do it! – Hemant Apr 22 '10 at 12:53
  • I would say you could do this by getting the window handle of the places bar and hiding it using a p/invoked `ShowWindow` win32 api call. – Rotem Dec 11 '12 at 09:01

2 Answers2

2

Check this out : Customize Your Open File Dialog

EDIT:

http://msdn.microsoft.com/en-us/magazine/cc300434.aspx

When coding against the Open File common dialog in the Win32 API, you can set a style to hide the places bar. But like other features of the Win32 common dialogs, this setting seems to have gotten lost in the migration to the .NET Framework. Creating a common dialog has never been easier than it is in the Framework, but this simplicity comes at the cost of some flexibility. In addition, in managed code there is no way to extend the layout of the dialog with additional controls.

Ahmet Kakıcı
  • 6,294
  • 4
  • 37
  • 49
  • 1
    I've read that article before, it shows only how to define custom places bar. There's no mentioning of removing it. – Vince Apr 22 '10 at 12:38
  • What or who is being quoted in the quote in the answer? – bzlm Apr 22 '10 at 12:47
0

There is no support in the .net framework for substantial changes to the existing dialogs. However solutions like this can help you.

Mhd. Yasseen
  • 1,027
  • 3
  • 16
  • 27