Windows Develop Bookmark and Share   
 index > Windows Forms General > webbrowser used as file browser opens each folder in another windows
 

webbrowser used as file browser opens each folder in another windows

Hi,

I'm using webbrowser to create a folder browser in my csharp window form and it works ok on XP. However on Windows 7 I get a new Windows Explorer window each time I try to open a folder inside the webbrowser. It should open the folder in that same webbrowser box (as it does in XP).

Anybody has any idea on how to make it work?

Many thanks
Ionut Bilica  Monday, October 05, 2009 7:29 AM
How are you opening the folder Webbrowser control

If you are opening by setting the Url property of WebControl to some value lik file:///C:\users\tamer\Desktop , There should be no problem.

Works fine for me.

Please provide information about how do you set folder.
Tamer Oz  Monday, October 05, 2009 7:45 AM
Thanks for the replay, sorry for the delay

I'm setting the folder exactly as you said, setting the Url property of the WebBrowser (don't know what you mean by WebControl) to a valid path (file:///d:).
It displays the files and folders from my disk, no problems there. But when I try to open a folder, it creates a new Windows Explorer window.
REMEMBER: I get this only on Windows 7 (I've tested on 2 computers with Windows 7 RC 1, both times getting this problem). It works as expected on XP and Vista. 

So is this a known problem with Windows 7? Is there a solution? 
Please help
Ionut Bilica  Wednesday, October 07, 2009 4:05 PM

You can use google to search for other answers

Custom Search

More Threads

• Text to bitmap
• UserControl With TextBox
• How can I run a method from child form?
• Access Javascript fns from WebBrowser C#
• How to close a window...
• Save image on drawing surface
• Implement a collapsible control in form
• ownerdraw textbox
• Closing a Form (DLL Version)
• Programatically updating or 'refreshing' a combobox