Solved

Using a web browser as a file box

Posted on 2014-03-07
6
297 Views
Last Modified: 2014-03-11
Experts, I need to use a web browser to display some files in my project. I have two questions.

1. How can i change the view style at runtime? For example details or small icons.
2. In the attached photo you can see the header of window. How can I get rid of that?
0
Comment
Question by:Basicfarmer
  • 3
6 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39914519
0
 

Author Comment

by:Basicfarmer
ID: 39915012
I want to use the explorer because it suits my needs with virtually no coding. All i need to do is webbrowser1.navigate("\\MyPath\MyFolder"). There will not be any navigation by the user. It will simply display files that are created for specific customer. The folder that it displays will be for that customer file. The only thing i will do is put a back button in the event that the user creates a sub folder. The only thing i want to change about this is allow the user to change the view style. I would like to get rid of the header but if it is not possible then I will live with it.
0
 

Author Comment

by:Basicfarmer
ID: 39919589
I misspoke earlier. The user can already change the view style but i need to change it in code.
0
 
LVL 26

Accepted Solution

by:
EddieShipman earned 500 total points
ID: 39920670
The views you get when you navigate to a file:/// url are browser specific. IE shows it differently than Chrome which shows it differently than Firefox. Look at the source code of the window and you'll see a lot of browser specific code. The only way to change the "view" is to write a URL handler to intercept the file:/// url and render it using a control of your choice.
0
 

Author Closing Comment

by:Basicfarmer
ID: 39921076
Thanks for the feedback, this is something i can work with.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question