Solved

Using a web browser as a file box

Posted on 2014-03-07
6
303 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

808 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